Skip to content

Commit

Permalink
Add Dockerfile and docker-compose to the backend
Browse files Browse the repository at this point in the history
  • Loading branch information
khansadaoudi committed Oct 6, 2023
1 parent bc7563c commit 82c7f28
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# python base image
FROM python:3.8

WORKDIR /app

COPY requirements.txt ./

# Installing the requirements
RUN pip install -r requirements.txt

COPY . .

# Command to run in the dev mode
CMD ["flask", "run", "--host=0.0.0.0", "--cert=adhoc"]
18 changes: 18 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3'
services:
arborator-backend:
container_name: arborator-backend
build: .
image: arborator-backend
ports:
- "5000:5000"
volumes:
- .:/app
environment:
- FLASK_ENV=dev
- FLASK_APP=wsgi.py
networks:
default:
external:
name: external-network

2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Flask-Script==2.0.6
Flask-SQLAlchemy==2.4.4
frozenlist==1.3.3
idna==2.10
importlib-metadata==6.6.0
iniconfig==1.1.1
itsdangerous==1.1.0
jdcal==1.4.1
Expand Down Expand Up @@ -71,3 +72,4 @@ uWSGI==2.0.19.1
Werkzeug==1.0.1
XlsxWriter==1.3.7
yarl==1.9.2
zipp==3.15.0

0 comments on commit 82c7f28

Please sign in to comment.