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
345 B

3 years ago
FROM node:alpine AS deps
WORKDIR /app
3 years ago
COPY package.json yarn.lock ./
3 years ago
RUN yarn install --frozen-lockfile
3 years ago
FROM node: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;
3 years ago
RUN yarn export
3 years ago
FROM nginx AS runner
3 years ago
COPY --from=builder /app/out /usr/share/nginx/html
3 years ago
EXPOSE 80