feat: Adding a docker environment

This commit is contained in:
Dušan Mitrović 2024-04-25 11:28:00 +02:00 committed by Ayo Ayco
parent 12571bd9f9
commit 1a7c9e8a02
2 changed files with 25 additions and 0 deletions

16
docker/Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM debian:12
WORKDIR /var/www/threads
RUN apt-get update && \
apt-get install -y \
python3-dev \
build-essential \
libssl-dev \
libffi-dev \
python3-setuptools \
python3-flask \
python3-requests \
gunicorn3
COPY . .

View file

@ -0,0 +1,9 @@
services:
threads:
container_name: threads
image: ayoayco/threads:latest
restart: unless-stopped
command: gunicorn -b 0.0.0.0:3000 -w 4 app:app
ports:
- "3000:3000"