Skip to content

Commit

Permalink
Dockerize
Browse files Browse the repository at this point in the history
  • Loading branch information
ashermorgan committed Jul 13, 2024
1 parent 5807f3e commit 829cdee
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
- name: Install dependencies
run: pip install -r requirements.txt

- name: Install test dependencies
run: pip install -r requirements-dev.txt

- name: Install playwright browsers
run: playwright install

Expand Down
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3-alpine

WORKDIR /app

COPY requirements.txt .
RUN python3 -m pip install --no-cache-dir -r requirements.txt

COPY songs2slides songs2slides

CMD ["gunicorn", "-b", "0.0.0.0:5000", "songs2slides:create_app()"]
12 changes: 12 additions & 0 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: songs2slides

services:
bot:
build:
context: .
environment:
- API_URL
- API_AUTH
stop_signal: SIGINT
ports:
- '5000:5000'
4 changes: 4 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pytest
pytest-mock
pytest-playwright
pytest-xprocess
5 changes: 1 addition & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
flask
gunicorn
python-dotenv
python-pptx
requests
pytest
pytest-mock
pytest-playwright
pytest-xprocess

0 comments on commit 829cdee

Please sign in to comment.