Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
FROM python:3.12-slim
|
| 2 |
-
RUN apt-get update && apt-get install -y git
|
| 3 |
|
| 4 |
# Set environment variables
|
| 5 |
ENV PYTHONDONTWRITEBYTECODE="1"
|
|
@@ -18,12 +17,13 @@ ENV PATH="/home/mediaflow_proxy/.local/bin:$PATH"
|
|
| 18 |
|
| 19 |
# Switch to non-root user
|
| 20 |
USER mediaflow_proxy
|
|
|
|
|
|
|
| 21 |
|
| 22 |
# Install Poetry
|
| 23 |
RUN pip install --user --no-cache-dir poetry
|
| 24 |
|
| 25 |
# Copy only requirements to cache them in docker layer
|
| 26 |
-
RUN git clone https://github.com/mhdzumair/mediaflow-proxy.git
|
| 27 |
# Project initialization:
|
| 28 |
RUN poetry config virtualenvs.in-project true \
|
| 29 |
&& poetry install --no-interaction --no-ansi --no-dev
|
|
|
|
| 1 |
FROM python:3.12-slim
|
|
|
|
| 2 |
|
| 3 |
# Set environment variables
|
| 4 |
ENV PYTHONDONTWRITEBYTECODE="1"
|
|
|
|
| 17 |
|
| 18 |
# Switch to non-root user
|
| 19 |
USER mediaflow_proxy
|
| 20 |
+
RUN apt-get update && apt-get install -y git
|
| 21 |
+
RUN git clone https://github.com/mhdzumair/mediaflow-proxy.git
|
| 22 |
|
| 23 |
# Install Poetry
|
| 24 |
RUN pip install --user --no-cache-dir poetry
|
| 25 |
|
| 26 |
# Copy only requirements to cache them in docker layer
|
|
|
|
| 27 |
# Project initialization:
|
| 28 |
RUN poetry config virtualenvs.in-project true \
|
| 29 |
&& poetry install --no-interaction --no-ansi --no-dev
|