FROM scratch 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 USER appuser EXPOSE 8080 ENTRYPOINT ["/db"]