Skip to content

Commit

Permalink
<update>[general]: update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
AleixoLucas42 committed Dec 30, 2023
1 parent 05c3a60 commit 546a7c6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
- database_host=cardsgo-mysql
depends_on:
- "mysql"
image: cardsgo
image: aleixolucas/cardsgo
certbot:
container_name: certbot
depends_on:
Expand Down
5 changes: 3 additions & 2 deletions dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:slim-buster
FROM python:3.9.18-bullseye

WORKDIR /app

Expand All @@ -11,7 +11,8 @@ RUN groupadd --gid $USER_GID $USERNAME \

USER $USERNAME

RUN pip install flask_cors mysql.connector flask mysql-connector-python flask-cors
COPY requirements.txt .
RUN pip install -r requirements.txt

COPY main.py .
COPY templates/index.html /app/templates/index.html
Expand Down
8 changes: 5 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
mysql
python-dotenv
flask_cors
mysql.connector
flask
mysql-connector-python
Flask-Cors
python-dotenv
flask-cors

0 comments on commit 546a7c6

Please sign in to comment.