From f3323beaca268f63e428502a593f078e8f990b62 Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Fri, 19 Jan 2024 18:11:47 +0800 Subject: [PATCH] fix: yarn install command in web Dockerfile (#2084) --- web/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/Dockerfile b/web/Dockerfile index 422fab37c4..1c2ba6bc2e 100644 --- a/web/Dockerfile +++ b/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}