txtdiary/Dockerfile
Mylloon 70f909f8c5
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
fix(docker): use non-root user earlier
2023-12-21 18:52:15 +01:00

18 lines
319 B
Docker

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