Created
November 10, 2020 22:22
-
-
Save iloveicedgreentea/4976d7b8ec5564bad0fb385b3bd4b873 to your computer and use it in GitHub Desktop.
docker 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
# Set a home directory specifically for this container | |
ENV WORKDIR="/app" | |
# Create the user, our app directory, and set the owner | |
RUN useradd -s /bin/bash --no-create-home app && mkdir -p ${WORKDIR} && chown -R app:app ${WORKDIR} | |
# run as app user | |
USER app | |
# set our relative directory to /app | |
WORKDIR ${WORKDIR} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment