瀏覽代碼

fix: yarn install command in web Dockerfile (#2084)

Bowen Liang 1 年之前
父節點
當前提交
f3323beaca
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      web/Dockerfile

+ 2 - 3
web/Dockerfile

@@ -1,16 +1,16 @@
 # base image
 FROM node:20.11.0-alpine AS base
+LABEL maintainer="takatost@gmail.com"
 
 # install packages
 FROM base as packages
-LABEL maintainer="takatost@gmail.com"
 
 WORKDIR /app/web
 
 COPY package.json .
 COPY yarn.lock .
 
-RUN yarn --only=prod
+RUN yarn install --frozen-lockfile
 
 
 # build resources
@@ -40,7 +40,6 @@ COPY --from=builder /app/web/.next/static ./.next/static
 
 
 COPY docker/entrypoint.sh ./entrypoint.sh
-RUN chmod +x ./entrypoint.sh
 
 ARG COMMIT_SHA
 ENV COMMIT_SHA ${COMMIT_SHA}