txtdiary/Dockerfile

19 lines
319 B
Text
Raw Normal View History

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