diff --git a/.dockerignore b/.dockerignore index c61c08f..14a8661 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,3 @@ node_modules docker +Dockerfile diff --git a/Dockerfile b/Dockerfile index c60ade2..48a7ebd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,14 @@ RUN npm install COPY . /usr/src/app RUN npm run build -FROM abiosoft/caddy:0.10.10 +FROM quay.io/geraldpape/as-builder:v1 as packer -COPY --from=build /usr/src/app/build /srv +COPY --from=build /usr/src/app/build /assets +RUN as-builder -debug -src /assets -dest /assets-server -port 8080 -url / + +FROM scratch + +COPY --from=packer /assets-server /assets-server + +CMD ["/assets-server"]