Created
October 24, 2016 19:56
-
-
Save peterszatmary/6dc18603fdb1a1e5737b90cd3e4cc4ea to your computer and use it in GitHub Desktop.
Dockerfile focused on how to create properly regular user with Docker. elixir:latest image was used with this example.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM elixir:latest | |
# not root but rather work with regular user | |
RUN useradd -ms /bin/bash regularuser | |
USER regularuser | |
WORKDIR /home/regularuser/ | |
EXPOSE 4000 | |
# Run REPL | |
CMD ["iex"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment