feat: Adding a docker environment
This commit is contained in:
parent
12571bd9f9
commit
1a7c9e8a02
2 changed files with 25 additions and 0 deletions
16
docker/Dockerfile
Normal file
16
docker/Dockerfile
Normal 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 . .
|
9
docker/docker-compose.yml
Normal file
9
docker/docker-compose.yml
Normal 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"
|
||||||
|
|
Loading…
Reference in a new issue