You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
383 B

FROM node:16-alpine AS deps
3 years ago
WORKDIR /app
3 years ago
COPY package.json yarn.lock ./
3 years ago
RUN yarn install --frozen-lockfile
FROM node:16-alpine AS builder
3 years ago
WORKDIR /app
3 years ago
COPY . .
COPY --from=deps /app/node_modules ./node_modules
ENV NEXT_TELEMETRY_DISABLED 1;
ENV NODE_ENV "production"
3 years ago
RUN yarn export
3 years ago
FROM nginx:alpine AS runner
3 years ago
COPY --from=builder /app/out /usr/share/nginx/html
3 years ago
EXPOSE 80