📦 further Dockerfile/ Bundle optimizations
All checks were successful
continuous-integration/drone/push Build is passing

close #25
This commit is contained in:
Philipp Dormann 2021-01-07 20:14:45 +01:00
parent 43ecd83213
commit ac952b6906
3 changed files with 5 additions and 0 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
public/env.sample.js
public/workbox-*.js
public/workbox-*.js.map

View File

@ -13,6 +13,7 @@ FROM alpine
COPY --from=0 /app/build /app COPY --from=0 /app/build /app
RUN rm -rf /app/build/_dist_/components RUN rm -rf /app/build/_dist_/components
RUN rm -rf /app/build/_dist_/locales RUN rm -rf /app/build/_dist_/locales
RUN rm -rf /app/build-manifest.json
FROM fholzer/nginx-brotli:v1.19.1 FROM fholzer/nginx-brotli:v1.19.1
COPY --from=1 /app /usr/share/nginx/html COPY --from=1 /app /usr/share/nginx/html
COPY ./nginx.conf /etc/nginx/nginx.conf COPY ./nginx.conf /etc/nginx/nginx.conf

View File

@ -10,6 +10,7 @@ module.exports = {
], ],
installOptions: { installOptions: {
/* ... */ /* ... */
sourceMap: false
}, },
devOptions: { devOptions: {
/* ... */ /* ... */