Skip to content

Commit

Permalink
🔨 Patch compose files to run with alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
dankolbman committed Mar 29, 2018
1 parent e8d3276 commit 97fc464
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ COPY bin/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
#COPY bin/gunicorn.conf /etc/supervisor/conf.d/gunicorn.conf

# Start processes
CMD ["supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
4 changes: 2 additions & 2 deletions bin/run.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/ash
source venv/bin/activate
flask db upgrade
exec gunicorn -b :80 --access-logfile - manage:app --threads 4
supervisord -c /etc/supervisor/conf.d/supervisord.conf
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
POSTGRES_DB: "dataservice"
dataservice:
build: .
command: /bin/bash -c "sleep 5; ./bin/run.sh"
command: /bin/ash -c "sleep 5; ./bin/run.sh"
volumes:
- .:/app
ports:
Expand Down

0 comments on commit 97fc464

Please sign in to comment.