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

Docker file #17

Merged
merged 4 commits into from
Mar 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading