txtdiary/Dockerfile
Mylloon 62e45befa2
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
fix: docker python path and data creation
2023-12-22 05:10:20 +01:00

24 lines
404 B
Docker

# syntax=docker/dockerfile:1
FROM python:3.11.6-alpine3.18
RUN addgroup -S td && adduser -S td -G td
WORKDIR /txtdiary
RUN mkdir ./data && chown td:td ./data
COPY LICENSE .
COPY requirements.txt .
RUN pip install pyuwsgi -r requirements.txt
COPY ./src ./app
USER td
CMD [ "uwsgi", \
"--http", "0.0.0.0:80", "-M", \
"-w", "app", \
"--callable", "app", \
"--pythonpath", "/txtdiary/app" ]