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 FROM alpine
ADD db /db ADD db /db
RUN echo -e "root:x:0:0:root:/:\nappuser:x:1000:1000:appuser:/:" > /etc/passwd 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 RUN echo -e "root:x:0:root\nappuser:x:1000:" > /etc/group
FROM scratch
COPY --from=0 /db /db
COPY --from=0 /etc/passwd /etc/
COPY --from=0 /etc/group /etc/
USER appuser USER appuser
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["/db"] ENTRYPOINT ["/db"]

View file

@ -1,7 +1,11 @@
FROM scratch FROM alpine
ADD db /db ADD srv /srv
RUN echo -e "root:x:0:0:root:/:\nappuser:x:1000:1000:appuser:/:" > /etc/passwd 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 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 USER appuser
EXPOSE 8080 EXPOSE 8080
ENTRYPOINT ["/db"] ENTRYPOINT ["/srv"]