Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #17 from Kwbmm/feat/docker-file
Browse files Browse the repository at this point in the history
Docker file
  • Loading branch information
Kwbmm authored Mar 10, 2024
2 parents 12eb0f3 + 235fd3a commit 4cdee28
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
.vscode
**/__pycache__
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
env/
*.pyc
.coverage
.vscode/
.vscode/
.venv
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM python:3.8-alpine
COPY src/ /app/src/
COPY requirements.txt /app/
COPY Makefile /app/
COPY config.json /app/

WORKDIR /app

RUN pip3 install -r requirements.txt
CMD export FLASK_APP=/app/src/main.py && python3 -m flask run --host=0.0.0.0
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,9 @@ debug_remote: install remote_debug_dep

test:
coverage run --source=src/ -m unittest discover -v

docker_build:
docker build -t scraped-tvtime .

docker_run: docker_build
docker run -p 8000:5000 scraped-tvtime
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Flask == 2.0.0
beautifulsoup4 == 4.9.1
requests == 2.23.0
coverage
coverage
Werkzeug==2.3.7

0 comments on commit 4cdee28

Please sign in to comment.