mfoud444 commited on
Commit
baabedc
·
verified ·
1 Parent(s): a34e84c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -3,6 +3,7 @@ FROM python:3.12-slim
3
  # Install system dependencies
4
  RUN apt-get update && \
5
  apt-get install -y --no-install-recommends \
 
6
  pandoc \
7
  && rm -rf /var/lib/apt/lists/*
8
 
@@ -16,16 +17,14 @@ ENV GUNICORN_CMD_ARGS="--timeout 600 --keep-alive 60"
16
  # Set up working directory
17
  WORKDIR /app
18
 
 
 
 
19
  # Install Python dependencies
20
- COPY --chown=user requirements.txt .
21
  RUN pip install --no-cache-dir --upgrade pip && \
22
  pip install --no-cache-dir --upgrade -r requirements.txt && \
23
  pip install --no-cache-dir --upgrade g4f[all]
24
 
25
- # Copy application code and .env file
26
- COPY --chown=user . .
27
- COPY --chown=user .env .env
28
-
29
  # Expose port
30
  EXPOSE 7860
31
 
 
3
  # Install system dependencies
4
  RUN apt-get update && \
5
  apt-get install -y --no-install-recommends \
6
+ git \
7
  pandoc \
8
  && rm -rf /var/lib/apt/lists/*
9
 
 
17
  # Set up working directory
18
  WORKDIR /app
19
 
20
+ # Clone the repository (instead of COPY)
21
+ RUN git clone https://github.com/mfoud444/research.git /app
22
+
23
  # Install Python dependencies
 
24
  RUN pip install --no-cache-dir --upgrade pip && \
25
  pip install --no-cache-dir --upgrade -r requirements.txt && \
26
  pip install --no-cache-dir --upgrade g4f[all]
27
 
 
 
 
 
28
  # Expose port
29
  EXPOSE 7860
30