13 lines
493 B
Docker
13 lines
493 B
Docker
FROM python:3.12-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-#BUILDNR# /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
|