Browse Source

ci(docker): add initial docker configuration

pull/2/head
Marta Enina 4 years ago
parent
commit
eab10fddff
  1. 6
      .dockerignore
  2. 8
      Dockerfile
  3. 2
      gunicorn.sh

6
.dockerignore

@ -0,0 +1,6 @@
__pycache__/
venv/
.woodpecker/
Dockerfile
.git
.gitignore

8
Dockerfile

@ -0,0 +1,8 @@
FROM python:3.10-alpine
COPY requirements.txt /
RUN pip3 install -r /requirements.txt
COPY . /app
WORKDIR /app
ENTRYPOINT ["./gunicorn.sh"]

2
gunicorn.sh

@ -0,0 +1,2 @@
#!/bin/sh
gunicorn --chdir app wsgi:app -w 2 --threads 2 -b 0.0.0.0:80
Loading…
Cancel
Save