Skip to content

Commit

Permalink
Merge pull request #16 from codeformuenster/fix-dockerbuild
Browse files Browse the repository at this point in the history
Smaller frontend dockerfile using static http server binary
  • Loading branch information
ubergesundheit authored Dec 31, 2017
2 parents 779202d + a021ec6 commit 4b5deb6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
docker
Dockerfile
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 4b5deb6

Please sign in to comment.