Skip to content

Commit 1c8572c

Browse files
authored
build: add startup command to Dockerfile (#117)
* fix: docker image * fix: docker image * fix: docker compose github action
1 parent 59a1a4b commit 1c8572c

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ jobs:
4949
fail_ci_if_error: true
5050
verbose: true
5151
- name: Deploy app
52-
run: docker-compose up -d --build
52+
run: docker compose up -d --build
5353
- name: Wait for app startup
5454
run: sleep 20
5555
- name: Run integration tests
5656
shell: bash
5757
run: pytest tests/integration_tests.py
5858
- name: Tear down app
59-
run: docker-compose down
59+
run: docker compose down
6060

6161
Publish:
6262
name: Build and publish app image

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ RUN pip install -e .
1919
## (required by FOCA)
2020
RUN chmod -R a+rwx /app/trs_filer/api
2121

22+
CMD ["bash", "-c", "cd /app/trs_filer && gunicorn -c gunicorn.py wsgi:app"]

docker-compose.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ services:
99
restart: unless-stopped
1010
links:
1111
- mongodb
12-
command: bash -c "cd /app/trs_filer; gunicorn -c gunicorn.py wsgi:app"
1312
ports:
1413
- "80:8080"
1514

0 commit comments

Comments
 (0)