Files
reflex-ipad/Dockerfile.builder
Matthias Bilger 7d2110d201
Some checks failed
continuous-integration/drone/push Build is failing
update building with individual number
2024-01-05 14:32:55 +01:00

30 lines
637 B
Ruby

FROM python:3.12 as init
# Pass `--build-arg API_URL=http://app.example.com:8000` during build
ARG API_URL
# Copy local context to `/app` inside container (see .dockerignore)
WORKDIR /app
ENV VIRTUAL_ENV=/app/.venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN python3.12 -m venv $VIRTUAL_ENV
COPY requirements.txt .
# Install app requirements and reflex inside virtualenv
RUN $VIRTUAL_ENV/bin/pip install -r requirements.txt
COPY deploy/rxconfig.py .
# Deploy templates and prepare app
RUN reflex init
COPY . .
COPY deploy/rxconfig.py .
ENV PATH="/app/.venv/bin:$PATH" API_URL=$API_URL PYTHONUNBUFFERED=TRUE
# vim:set ft=dockerfile: