update dockerfile and docker-compose for mysql

This commit is contained in:
2023-03-17 00:56:12 -04:00
parent a4a3193e05
commit ccdc9940df
2 changed files with 6 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
FROM python:3.11.0-alpine3.16
COPY ./app /app
WORKDIR /app
RUN apk add gcc musl-dev mariadb-connector-c-dev
RUN pip3 install -r requirements.txt
ENV FLASK_APP=app.py
CMD ["gunicorn", "-b", "0.0.0.0:80", "-w", "4", "app:app"]