Skip to content

Commit

Permalink
Fix CMD command in Dockerfile for compatibility with Compose
Browse files Browse the repository at this point in the history
The previous form worked fine with Kubernetes but doesn’t seem to be
compatible with docker-compose.

Fixes #64
  • Loading branch information
wmnnd committed Jul 8, 2021
1 parent d955bde commit 089f952
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ops/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ RUN mkdir -p ${HOME} && \
adduser -s /bin/sh -u 1001 -G root -h ${HOME} -S -D default && \
chown -R 1001:0 ${HOME}
ENTRYPOINT ["/opt/app/bin/keila"]
CMD "start"
CMD ["start"]
3 changes: 2 additions & 1 deletion ops/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ services:
depends_on:
- postgres
build:
context: .
context: ../
dockerfile: ops/Dockerfile
environment:
SECRET_KEY_BASE: "${YOUR_SECRET_KEY}"
DB_URL: "postgres://postgres:postgres@postgres/postgres"
Expand Down

0 comments on commit 089f952

Please sign in to comment.