From a717a922c039bf6f71c628ec548384f2f839a36b Mon Sep 17 00:00:00 2001 From: Matsadura Date: Mon, 9 Sep 2024 17:05:42 +0100 Subject: [PATCH] [UPDATE] Restructure backend files & docker flask --- docker-compose.yml | 4 ++-- {api => server/api}/.env | 0 {api => server/api}/__init__.py | 0 {api => server/api}/app.py | 0 flask.dockerfile => server/flask.dockerfile | 2 +- 5 files changed, 3 insertions(+), 3 deletions(-) rename {api => server/api}/.env (100%) rename {api => server/api}/__init__.py (100%) rename {api => server/api}/app.py (100%) rename flask.dockerfile => server/flask.dockerfile (81%) diff --git a/docker-compose.yml b/docker-compose.yml index 8fe3ae4..52d30e1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,11 +4,11 @@ services: api: build: context: . - dockerfile: flask.dockerfile + dockerfile: server/flask.dockerfile ports: - "5000:5000" volumes: - - ./api:/movie_name/api + - ./server:/movie_name/server client: build: diff --git a/api/.env b/server/api/.env similarity index 100% rename from api/.env rename to server/api/.env diff --git a/api/__init__.py b/server/api/__init__.py similarity index 100% rename from api/__init__.py rename to server/api/__init__.py diff --git a/api/app.py b/server/api/app.py similarity index 100% rename from api/app.py rename to server/api/app.py diff --git a/flask.dockerfile b/server/flask.dockerfile similarity index 81% rename from flask.dockerfile rename to server/flask.dockerfile index c71f311..5d3729a 100644 --- a/flask.dockerfile +++ b/server/flask.dockerfile @@ -8,4 +8,4 @@ RUN pip3 install flask==2.1.0 werkzeug==2.1.1 flask-cors==4.0.1 sqlalchemy==1.4. EXPOSE 5000 -CMD ["python3", "-m", "api.app"] \ No newline at end of file +CMD ["python3", "-m", "server.api.app"] \ No newline at end of file