fix: remove sourcemaps from production image

This commit is contained in:
Julian Lobbes 2023-03-14 22:29:49 +01:00
parent 202af9e56e
commit 1326c0245f
2 changed files with 911 additions and 384 deletions

1293
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -31,6 +31,6 @@ COPY --chown=${CUSTOM_USERNAME}:${CUSTOM_GROUPNAME} robots /app/robots/
# Install dependencies
USER ${CUSTOM_UID:-1000}:${CUSTOM_GID:-1000}
RUN npm install
RUN npx parcel build frontend/src/html/index.html
RUN npx parcel build --no-source-maps frontend/src/html/index.html
ENTRYPOINT ["caddy", "run", "--config", "/app/production.Caddyfile", "--adapter", "caddyfile"]