diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bc2d72d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM python:3.11.0-alpine3.16 +COPY ./app /app +WORKDIR /app +RUN pip3 install -r requirements.txt +ENV FLASK_APP=app.py +CMD ["python3", "-m", "flask", "run", "--host=0.0.0.0"] \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..e12f058 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,11 @@ +version: '3' +services: + app: + image: bellscheduler:latest + restart: always + environment: + - SQLITE_DB=database.db + volumes: + - ./database.db:/app/database.db + ports: + - 127.0.0.1:5000:5000 \ No newline at end of file