diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000..6609128 --- /dev/null +++ b/docker/Dockerfile @@ -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 . . diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml new file mode 100644 index 0000000..49d2571 --- /dev/null +++ b/docker/docker-compose.yml @@ -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" +