diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..aa934e3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.10 + +# set the working directory +WORKDIR /app + +COPY requirements.txt /app/ + +# install dependencies +RUN pip install -r requirements.txt + +COPY . /app/ + +EXPOSE 5000 + +# run the application +CMD ["flask", "run", "--host=0.0.0.0"] \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e829455 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3.8" + +services: + web: + build: . + restart: always + ports: + - "5000:5000" + environment: + - FLASK_ENV=development