Skip to content

Commit

Permalink
Fix wrong user and group for chown command in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrytrager committed Oct 1, 2023
1 parent 70c2693 commit bb77be4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ RUN apt-get update -qq && \
rm -rf /var/lib/apt/lists /var/cache/apt/archives

# Copy built artifacts: gems, application
COPY --from=build --chown=1001:1001 $BUNDLE_PATH $BUNDLE_PATH
COPY --from=build --chown=1001:1001 $RAILS_ROOT $RAILS_ROOT
RUN chown -R 1001:1001 db log storage tmp
COPY --from=build --chown=10001:10001 $BUNDLE_PATH $BUNDLE_PATH
COPY --from=build --chown=10001:10001 $RAILS_ROOT $RAILS_ROOT
# RUN chown -R 1001:1001 db log storage tmp
USER $APP_USER

# Deployment options
Expand Down

0 comments on commit bb77be4

Please sign in to comment.