Skip to content

Commit

Permalink
Enhancement: Better docker container layers (#51)
Browse files Browse the repository at this point in the history
* move adding binaries in docker releaser to improve image layers

* add binary last as it is more likely to change than the migrations
  • Loading branch information
tigh-latte authored Sep 30, 2021
1 parent cb5b841 commit ad50111
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.releaser
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ RUN adduser \

FROM bitnami/minideb:buster

ADD payd-server /bin
ADD data/sqlite/migrations/ /migrations
COPY --from=builder /etc/passwd /etc/passwd
COPY --from=builder /etc/group /etc/group
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt

RUN mkdir /paydb && chown -R appuser:appuser /paydb
VOLUME /paydb

ADD data/sqlite/migrations/ /migrations
ADD payd-server /bin

USER appuser:appuser

EXPOSE 8443
Expand Down

0 comments on commit ad50111

Please sign in to comment.