deepak191z commited on
Commit
b20ce05
·
verified ·
1 Parent(s): 4bffcaf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -11,7 +11,7 @@ WORKDIR /app
11
 
12
  # Receive Git URL from build argument
13
  ARG GIT_REP
14
- RUN echo "Cloning repository: ${GIT_REPO}" && \
15
  git clone https://github.com/viratxd/fastn8n.git /app/fastn8n
16
 
17
  WORKDIR /app/fastn8n
@@ -19,8 +19,12 @@ WORKDIR /app/fastn8n
19
  # Set up virtual environment and dependencies
20
  RUN python -m venv shared_env && \
21
  shared_env/bin/pip install --upgrade pip && \
22
- shared_env/bin/pip install -r requirements.txt && \
23
- shared_env/bin/pip install numpy opencv-python edge-tts pydub
 
 
 
 
24
 
25
  EXPOSE 7860
26
  CMD ["shared_env/bin/python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
11
 
12
  # Receive Git URL from build argument
13
  ARG GIT_REP
14
+ RUN echo "Cloning repository: ${GIT_REP}" && \
15
  git clone https://github.com/viratxd/fastn8n.git /app/fastn8n
16
 
17
  WORKDIR /app/fastn8n
 
19
  # Set up virtual environment and dependencies
20
  RUN python -m venv shared_env && \
21
  shared_env/bin/pip install --upgrade pip && \
22
+ shared_env/bin/pip install --no-cache-dir -r requirements.txt && \
23
+ shared_env/bin/pip install --no-cache-dir numpy opencv-python-headless edge-tts pydub && \
24
+ shared_env/bin/python -m pip list > /app/pip_list.txt
25
+
26
+ # Ensure permissions
27
+ RUN chown -R user:user /app
28
 
29
  EXPOSE 7860
30
  CMD ["shared_env/bin/python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]