Merge pull request #26 from beatz174-bit/codex/fix-docker-build-caching-issues
Ensure build stage has dependencies available
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ RUN --mount=type=cache,target=/root/.npm \
|
|||||||
COPY index.html ./
|
COPY index.html ./
|
||||||
COPY src ./src
|
COPY src ./src
|
||||||
COPY public ./public
|
COPY public ./public
|
||||||
RUN npm run build
|
RUN --mount=type=cache,target=/app/node_modules npm run build
|
||||||
|
|
||||||
# Serve stage
|
# Serve stage
|
||||||
FROM nginx:1.27-alpine
|
FROM nginx:1.27-alpine
|
||||||
|
|||||||
Reference in New Issue
Block a user