test/Dockerfile.db
ston1th b0ee4defe8
All checks were successful
the build was successful
debug
2019-01-18 22:39:06 +01:00

11 lines
302 B
Text

FROM alpine
ADD db /db
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 /db /db
COPY --from=0 /etc/passwd /etc/
COPY --from=0 /etc/group /etc/
USER appuser
EXPOSE 8080
ENTRYPOINT ["/db"]