Skip to content

Commit

Permalink
chore: remove sourcemap after build & upload to sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
newarifrh committed Aug 31, 2024
1 parent 1c79c83 commit 18470fa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile.production
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ FROM nginx:stable-alpine-slim AS production-stage
RUN mkdir /app

COPY --from=build-stage /app/dist /app

# Remove source maps and other unwanted files
RUN find /app -name "*.map" -delete

COPY default.conf /etc/nginx/conf.d/default.conf
4 changes: 4 additions & 0 deletions Dockerfile.staging
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ FROM nginx:stable-alpine-slim AS staging-stage
RUN mkdir /app

COPY --from=build-stage /app/dist /app

# Remove source maps and other unwanted files
RUN find /app -name "*.map" -delete

COPY default.conf /etc/nginx/conf.d/default.conf

0 comments on commit 18470fa

Please sign in to comment.