Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Commit

Permalink
fix: quality
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgfr committed Jan 28, 2022
1 parent 5bb23cd commit e6d19c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Install dependencies only when needed
FROM node:16-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
RUN apk add --no-cache libc6-compat=1.2.2
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
Expand All @@ -11,8 +11,7 @@ FROM node:16-alpine AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN yarn build
RUN yarn export
RUN yarn build:export

# Production image, copy all the files and run next
FROM ghcr.io/socialgouv/docker/nginx:6.64.2 AS runner
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"build": "next build",
"start": "next start",
"lint": "next lint",
"export": "next export"
"export": "next export",
"build:export": "yarn build && yarn export"
},
"dependencies": {
"next": "12.0.9",
Expand Down

0 comments on commit e6d19c2

Please sign in to comment.