Merge branch 'main' of git.mylloon.fr:Anri/txtdiary
All checks were successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
Mylloon 2023-12-21 18:51:12 +01:00
commit f471374b30
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
2 changed files with 11 additions and 10 deletions

2
.gitignore vendored
View file

@ -5,4 +5,6 @@
/.vscode/
/docker-compose.yml
__pycache__/

View file

@ -2,18 +2,17 @@
FROM python:3.11.6-alpine3.18
RUN addgroup -S td && adduser -S td -G td
WORKDIR /txtdiary
COPY requirements.txt ./requirements.txt
COPY app ./src
COPY LICENSE ./LICENSE
COPY LICENSE .
RUN pip install . pyuwsgi -r requirements.txt
COPY requirements.txt .
RUN pip install pyuwsgi -r requirements.txt
CMD [ "uwsgi"
, "--http", "127.0.0.1:8000"
, "--master"
, "-w" ,"src:app"
]
COPY ./src ./app
EXPOSE 8000
USER td
CMD [ "uwsgi", "--http", "0.0.0.0:80", "-M", "-w" ,"app.app", "--callable", "app" ]