Files
reflex-ipad/Dockerfile.backend
Matthias Bilger 5e3448aa03
All checks were successful
continuous-integration/drone/push Build is passing
optimizing build time
- using cache
- reorder docker build steps
2024-01-05 07:13:13 +01:00

13 lines
483 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 PYTHONUNBUFFERED=TRUE
CMD reflex db migrate && reflex run --env prod --backend-only