Skip to content

Commit

Permalink
Update dockerfile to use the exact package versions in pnpm lockfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dyang415 committed Sep 20, 2023
1 parent 0fac382 commit 6800df4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ RUN . /opt/venv/bin/activate && pip install -r requirements.txt
# Install frontend dependencies, copy frontend files and build frontend
WORKDIR /app/frontend
COPY /frontend/package.json /app/frontend/package.json
RUN npm install -g pnpm && \
pnpm install
COPY ./frontend /app/frontend
COPY /frontend/pnpm-lock.yaml /app/frontend/pnpm-lock.yaml
RUN npm install -g pnpm && pnpm install --frozen-lockfile

COPY /frontend /app/frontend
RUN npm run build

# Copy backend files
Expand Down

0 comments on commit 6800df4

Please sign in to comment.