Skip to content

Commit

Permalink
move user to make sense
Browse files Browse the repository at this point in the history
  • Loading branch information
some-natalie committed Feb 27, 2024
1 parent 7d8f18a commit 1fa8497
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ RUN yes | gem update --system
RUN yes | gem install jekyll bundler
RUN chown -R nonroot:nonroot /usr/local/vendor

# Now switch back to the non-root user
USER nonroot

# Set the working directory
WORKDIR /work

# Copy in and set the entrypoint
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

# Now switch back to the non-root user
USER nonroot

# Set the entrypoint
ENTRYPOINT ["/entrypoint.sh"]

# Expose ports
Expand Down

0 comments on commit 1fa8497

Please sign in to comment.