We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ebc3953 + 2b2b376 commit e91a27dCopy full SHA for e91a27d
Dockerfile
@@ -2,10 +2,12 @@ ARG PYTHON_IMG_TAG=3.11
2
ARG NODE_IMG_TAG=20.5.1
3
4
FROM node:${NODE_IMG_TAG}-bookworm-slim as frontend-base
5
-WORKDIR /app
6
-COPY ./frontend ./frontend
7
-RUN cd frontend && npm install
8
-RUN cd frontend && npm run build
+WORKDIR /app/frontend
+COPY ./frontend/package*.json ./
+RUN npm install
+COPY ./frontend ./
9
+COPY .. /app
10
+RUN npm run build
11
12
# Define the base stage
13
FROM docker.io/python:${PYTHON_IMG_TAG}-slim-bookworm as base
0 commit comments