Skip to content

Commit

Permalink
don't ignore script (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
artsyjian authored Nov 27, 2024
1 parent 7789df1 commit b61e00f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@
!storage/.keep
!tmp/.keep
!vendor/

# scripts
!scripts/load_secrets_and_run.sh
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,6 @@ RUN apk update && apk --no-cache --quiet add --update \
COPY --chown=deploy:deploy --from=builder /app .
# copy gems
COPY --chown=deploy:deploy --from=builder /usr/local/bundle /usr/local/bundle
# copy scripts
COPY --chown=deploy:deploy --from=builder /app/scripts/load_secrets_and_run.sh load_secrets_and_run.sh

# Create directories for Puma/Nginx & give deploy user access
RUN mkdir -p /shared/pids /shared/sockets && \
Expand All @@ -92,5 +90,5 @@ RUN rm -rf node_modules

USER deploy

ENTRYPOINT ["/usr/bin/dumb-init", "./load_secrets_and_run.sh"]
ENTRYPOINT ["/usr/bin/dumb-init", "./scripts/load_secrets_and_run.sh"]
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"]

0 comments on commit b61e00f

Please sign in to comment.