Mythus commited on
Commit
a71b38c
·
verified ·
1 Parent(s): e0f9d83

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -2
Dockerfile CHANGED
@@ -3,7 +3,7 @@ FROM python:3.12-slim
3
  # Set environment variables
4
  ENV PYTHONDONTWRITEBYTECODE="1"
5
  ENV PYTHONUNBUFFERED="1"
6
- ENV PORT="8888"
7
 
8
  # Set work directory
9
  WORKDIR /mediaflow_proxy
@@ -15,9 +15,16 @@ RUN chown -R mediaflow_proxy:mediaflow_proxy /mediaflow_proxy
15
  # Set up the PATH to include the user's local bin
16
  ENV PATH="/home/mediaflow_proxy/.local/bin:$PATH"
17
 
18
- # Switch to non-root user
 
 
 
 
19
  USER mediaflow_proxy
20
 
 
 
 
21
  # Install Poetry
22
  RUN pip install --user --no-cache-dir poetry
23
 
 
3
  # Set environment variables
4
  ENV PYTHONDONTWRITEBYTECODE="1"
5
  ENV PYTHONUNBUFFERED="1"
6
+ ENV PORT="8080"
7
 
8
  # Set work directory
9
  WORKDIR /mediaflow_proxy
 
15
  # Set up the PATH to include the user's local bin
16
  ENV PATH="/home/mediaflow_proxy/.local/bin:$PATH"
17
 
18
+ # Switch to root user to install git
19
+ USER root
20
+ RUN apt-get update && apt-get install -y git
21
+
22
+ # Switch back to non-root user
23
  USER mediaflow_proxy
24
 
25
+ # Clone the repository
26
+ RUN git clone https://github.com/mhdzumair/mediaflow-proxy.git .
27
+
28
  # Install Poetry
29
  RUN pip install --user --no-cache-dir poetry
30