This commit is contained in:
parent
a441211ab4
commit
6397a7ea8f
2 changed files with 11 additions and 10 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,4 +5,6 @@
|
||||||
|
|
||||||
/.vscode/
|
/.vscode/
|
||||||
|
|
||||||
|
/docker-compose.yml
|
||||||
|
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|
19
Dockerfile
19
Dockerfile
|
@ -2,18 +2,17 @@
|
||||||
|
|
||||||
FROM python:3.11.6-alpine3.18
|
FROM python:3.11.6-alpine3.18
|
||||||
|
|
||||||
|
RUN addgroup -S td && adduser -S td -G td
|
||||||
|
|
||||||
WORKDIR /txtdiary
|
WORKDIR /txtdiary
|
||||||
|
|
||||||
COPY requirements.txt ./requirements.txt
|
COPY LICENSE .
|
||||||
COPY app ./src
|
|
||||||
COPY LICENSE ./LICENSE
|
|
||||||
|
|
||||||
RUN pip install . pyuwsgi -r requirements.txt
|
COPY requirements.txt .
|
||||||
|
RUN pip install pyuwsgi -r requirements.txt
|
||||||
|
|
||||||
CMD [ "uwsgi"
|
COPY ./src ./app
|
||||||
, "--http", "127.0.0.1:8000"
|
|
||||||
, "--master"
|
|
||||||
, "-w" ,"src:app"
|
|
||||||
]
|
|
||||||
|
|
||||||
EXPOSE 8000
|
USER td
|
||||||
|
|
||||||
|
CMD [ "uwsgi", "--http", "0.0.0.0:80", "-M", "-w" ,"app.app", "--callable", "app" ]
|
||||||
|
|
Loading…
Reference in a new issue