Skip to content

Commit

Permalink
Add ssh-client, update app user
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok committed Dec 20, 2023
1 parent 0b2b8d2 commit 0a65a78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ ENV PATH=$PATH:/app
# Copy code in, add proper metadata
FROM bennettbot-base as bennettbot-prod

# Dokku is using port 7000 rather than the default 5000
# We need to expose it here so that the dokku checks will use the correct port
EXPOSE 7000
EXPOSE 9999

# Adjust this metadata to fit project. Note that the base-docker image does set
# some basic metadata.
Expand All @@ -123,10 +121,12 @@ LABEL org.opencontainers.image.created=$BUILD_DATE
ARG GITREF=unknown
LABEL org.opencontainers.image.revision=$GITREF

ARG USERID=10001
ARG GROUPID=10001
ARG USERID=10004
ARG GROUPID=10004

RUN chown -R ${USERID}:${GROUPID} /app
RUN mkdir /.ssh

RUN chown -R ${USERID}:${GROUPID} /app/workspace

USER ${USERID}:${GROUPID}

Expand Down
1 change: 1 addition & 0 deletions docker/dependencies.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# list ubuntu packages needed in production, one per line
openssh-client
python3.9
python3.9-distutils
python3.9-venv
Expand Down

0 comments on commit 0a65a78

Please sign in to comment.