optimizing build time
continuous-integration/drone/push Build is passing

- using cache
- reorder docker build steps
This commit is contained in:
2024-01-05 07:13:13 +01:00
parent f55825fa05
commit 5e3448aa03
5 changed files with 63 additions and 24 deletions
+2 -2
View File
@@ -6,13 +6,13 @@ ARG API_URL
# Copy local context to `/app` inside container (see .dockerignore)
WORKDIR /app
COPY requirements.txt .
# Create virtualenv which will be copied into final container
ENV VIRTUAL_ENV=/app/.venv
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
RUN python3.11 -m venv $VIRTUAL_ENV
COPY requirements.txt .
# Install app requirements and reflex inside virtualenv
RUN pip install -r requirements.txt