docker time

This commit is contained in:
2022-11-19 17:17:26 -05:00
parent ab63eeff96
commit 817669d889
2 changed files with 17 additions and 0 deletions

6
Dockerfile Normal file
View File

@@ -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"]

11
docker-compose.yaml Normal file
View File

@@ -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