소스 검색

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

tags/0.4.9
Bowen Liang 1 년 전
부모
커밋
f3323beaca
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2
    3
      web/Dockerfile

+ 2
- 3
web/Dockerfile 파일 보기

# base image # base image
FROM node:20.11.0-alpine AS base FROM node:20.11.0-alpine AS base
LABEL maintainer="takatost@gmail.com"


# install packages # install packages
FROM base as packages FROM base as packages
LABEL maintainer="takatost@gmail.com"


WORKDIR /app/web WORKDIR /app/web


COPY package.json . COPY package.json .
COPY yarn.lock . COPY yarn.lock .


RUN yarn --only=prod
RUN yarn install --frozen-lockfile




# build resources # build resources




COPY docker/entrypoint.sh ./entrypoint.sh COPY docker/entrypoint.sh ./entrypoint.sh
RUN chmod +x ./entrypoint.sh


ARG COMMIT_SHA ARG COMMIT_SHA
ENV COMMIT_SHA ${COMMIT_SHA} ENV COMMIT_SHA ${COMMIT_SHA}

Loading…
취소
저장