docker time
This commit is contained in:
6
Dockerfile
Normal file
6
Dockerfile
Normal 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
11
docker-compose.yaml
Normal 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
|
Reference in New Issue
Block a user