Files
reflex-ipad/Dockerfile.backend
Matthias Bilger ebf259cf25
All checks were successful
continuous-integration/drone/push Build is passing
added postgresl ibrary dependency
2024-01-04 16:19:41 +01:00

13 lines
461 B
Docker

FROM python:3.11-slim
ARG API_URL
WORKDIR /app
RUN apt-get update && apt-get --no-install-recommends -y install libpq5 && rm -rf /var/apt/cache/*
RUN adduser --disabled-password --home /app reflex
COPY --chown=reflex --from=gitea.pb42.de/matthias/reflex-ipad:builder /app /app
COPY --chown=reflex deploy/* .
RUN chown reflex:reflex /app
USER reflex
ENV PATH="/app/.venv/bin:$PATH" API_URL=$API_URL
CMD reflex db migrate && reflex run --env prod --backend-only