diff --git a/Dockerfile b/Dockerfile index 02e6d401..2fd5dd25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,13 +4,13 @@ WORKDIR /usr/src/app COPY package*.json ./ RUN npm ci COPY . . +ENV NEXT_PRIVATE_STANDALONE true RUN npm run build FROM node:slim LABEL Maintainer Michael Shihjay Chen WORKDIR /usr/src/app ENV NODE_ENV production -ENV NEXT_PRIVATE_STANDALONE true COPY --from=builder /usr/src/app/.next/standalone ./ COPY --from=builder /usr/src/app/.next/static ./.next/static RUN mkdir -p /usr/src/app/trustees