[Dockerfile] Cleanup dev dependencies after build

This commit is contained in:
Fabio Manganiello 2025-03-07 22:48:28 +01:00
parent 2dd6c9f6b4
commit eb4e92c53c
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -36,6 +36,11 @@ RUN apk add --no-cache typescript make
# Build all
RUN make
# Remove dev dependencies
RUN npm prune --production
RUN cd frontend && npm prune --production
RUN apk del make typescript
# Web image
FROM node:23-alpine AS web