fix dockerfile
Some checks failed
the build failed

This commit is contained in:
ston1th 2018-12-24 15:37:14 +01:00
commit 5d82f7fa4e
2 changed files with 12 additions and 4 deletions

View file

@ -1,7 +1,11 @@
FROM scratch
ADD db /db
FROM alpine
ADD srv /srv
RUN echo -e "root:x:0:0:root:/:\nappuser:x:1000:1000:appuser:/:" > /etc/passwd
RUN echo -e "root:x:0:root\nappuser:x:1000:" > /etc/group
FROM scratch
COPY --from=0 /srv /srv
COPY --from=0 /etc/passwd /etc/
COPY --from=0 /etc/group /etc/
USER appuser
EXPOSE 8080
ENTRYPOINT ["/db"]
ENTRYPOINT ["/srv"]