Update Dockerfile

This commit is contained in:
DefectingCat
2021-12-16 04:00:01 +00:00
parent bddc7ca665
commit 8ee8028e15

View File

@ -22,17 +22,6 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
&& yarn config set registry https://registry.npm.taobao.org \
&& yarn build && yarn install --production --ignore-scripts --prefer-offline
# e2e test
# FROM cypress/base AS tester
# WORKDIR /app
# COPY --from=builder /app/next.config.js ./
# COPY --from=builder /app/public ./public
# COPY --from=builder /app/.next ./.next
# COPY --from=builder /app/node_modules ./node_modules
# COPY --from=builder /app/package.json ./package.json
# RUN yarn e2e:headless
# Production image, copy all the files and run next
FROM node:lts-alpine AS runner
WORKDIR /app