Files
reflex-ipad/Dockerfile.backend
2024-01-04 09:02:44 +01:00

11 lines
333 B
Docker

FROM python:3.11-slim
ARG API_URL
WORKDIR /app
RUN adduser --disabled-password --home /app reflex
COPY --chown=reflex --from=gitea.pb42.de/matthias/reflex-ipad:builder /app /app
COPY --chown=reflex deploy/* .
USER reflex
ENV PATH="/app/.venv/bin:$PATH" API_URL=$API_URL
CMD reflex db migrate && reflex run --env prod --backend-only