mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 16:51:37 +00:00
Update Dockerfile
This commit is contained in:
11
Dockerfile
11
Dockerfile
@ -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
|
||||
|
Reference in New Issue
Block a user