[Dockerfile] Cleanup dev dependencies after build
This commit is contained in:
parent
2dd6c9f6b4
commit
eb4e92c53c
1 changed files with 5 additions and 0 deletions
|
@ -36,6 +36,11 @@ RUN apk add --no-cache typescript make
|
||||||
# Build all
|
# Build all
|
||||||
RUN make
|
RUN make
|
||||||
|
|
||||||
|
# Remove dev dependencies
|
||||||
|
RUN npm prune --production
|
||||||
|
RUN cd frontend && npm prune --production
|
||||||
|
RUN apk del make typescript
|
||||||
|
|
||||||
# Web image
|
# Web image
|
||||||
FROM node:23-alpine AS web
|
FROM node:23-alpine AS web
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue