This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
# Stage 1: init
|
||||
FROM python:3.11 as init
|
||||
FROM python:3.12 as init
|
||||
|
||||
# Pass `--build-arg API_URL=http://app.example.com:8000` during build
|
||||
ARG API_URL
|
||||
@@ -9,15 +8,18 @@ WORKDIR /app
|
||||
|
||||
ENV VIRTUAL_ENV=/app/.venv
|
||||
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||
RUN python3.11 -m venv $VIRTUAL_ENV
|
||||
RUN python3.12 -m venv $VIRTUAL_ENV
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
# Install app requirements and reflex inside virtualenv
|
||||
RUN pip install -r requirements.txt
|
||||
RUN $VIRTUAL_ENV/bin/pip install -r requirements.txt
|
||||
|
||||
COPY . .
|
||||
COPY deploy/* .
|
||||
|
||||
# Deploy templates and prepare app
|
||||
RUN reflex init
|
||||
|
||||
|
||||
# vim:set ft=dockerfile:
|
||||
|
||||
Reference in New Issue
Block a user