Mythus commited on
Commit
ff4ff19
·
verified ·
1 Parent(s): b6c5158

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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