-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #143 from egyptiankarim/master
Dockerfile Tweaks and Cleanup
- Loading branch information
Showing
3 changed files
with
7 additions
and
48 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
FROM python:3.6.3 | ||
|
||
# Create an unprivileged user | ||
# Set up a workspace | ||
ENV PSHTT_HOME=/home/pshtt | ||
RUN mkdir ${PSHTT_HOME} | ||
RUN mkdir ${PSHTT_HOME} | ||
|
||
# Create an unprivileged user | ||
RUN groupadd --system pshtt \ | ||
&& useradd --system --comment="pshtt user" --gid="pshtt" pshtt | ||
&& useradd --system --comment="pshtt user" --gid="pshtt" pshtt | ||
|
||
# Install pshtt | ||
COPY . ${PSHTT_HOME} | ||
RUN chown -R pshtt:pshtt ${PSHTT_HOME} | ||
RUN pip install --no-cache ${PSHTT_HOME} | ||
|
||
# Prepare to run | ||
WORKDIR PSHTT_HOME | ||
WORKDIR ${PSHTT_HOME} | ||
USER pshtt:pshtt | ||
ENTRYPOINT ["pshtt"] | ||
CMD ["--help"] |
This file was deleted.
Oops, something went wrong.
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