Skip to content

Commit

Permalink
Fix entrypoint for sidekiq
Browse files Browse the repository at this point in the history
  • Loading branch information
aldwin7894 committed Mar 23, 2024
1 parent 4c3d9bc commit 387b9d0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ COPY --from=build-env /usr/local/bundle /usr/local/bundle
COPY --from=build-env /gems /gems
COPY --from=build-env "/node-v${NODE_VERSION}-linux-x64" "/node-v${NODE_VERSION}-linux-x64"

COPY entrypoint-sidekiq.sh .
RUN chmod+x ./entrypoint-sidekiq.sh

# Enable jemalloc
ENV LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so.2

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ services:
- RAILS_ASSET_HOST
container_name: project-cyan-sidekiq
image: aldwin7894/project-cyan:prod
entrypoint: ./entrypoint-sidekiq.sh
entrypoint: /usr/src/app/entrypoint-sidekiq.sh
command: "bin/sidekiq"
restart: always
depends_on:
Expand Down

0 comments on commit 387b9d0

Please sign in to comment.