Speedofmastery commited on
Commit
fc315e7
·
1 Parent(s): 3b536e0

Auto-commit: Dockerfile updated

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -20
Dockerfile CHANGED
@@ -17,26 +17,10 @@ COPY requirements.txt .
17
  RUN . $HOME/.cargo/env && uv pip install --system -r requirements.txt
18
 
19
  # Copy application code
20
- COPY . .
21
-
22
- # Create necessary directories and set permissions
23
- RUN mkdir -p workspace config assets logs .cache/huggingface \
24
- && chmod -R 755 workspace config assets logs \
25
- && chown -R 1000:1000 workspace config assets logs .cache
26
-
27
- # Set environment variables for complete deployment
28
- ENV PYTHONPATH=/app/OpenManus
29
- ENV HF_HOME=/app/OpenManus/.cache/huggingface
30
- ENV GRADIO_SERVER_NAME=0.0.0.0
31
- ENV GRADIO_SERVER_PORT=7860
32
-
33
- # Cloudflare environment variables (set by user)
34
- ENV CLOUDFLARE_API_TOKEN=""
35
- ENV CLOUDFLARE_ACCOUNT_ID=""
36
- ENV CLOUDFLARE_WORKER_URL=""
37
- ENV CLOUDFLARE_D1_DATABASE_ID=""
38
- ENV CLOUDFLARE_R2_BUCKET_NAME=""
39
- ENV CLOUDFLARE_KV_NAMESPACE_ID=""
40
 
41
  # HuggingFace environment variables
42
  ENV HF_TOKEN=""
 
17
  RUN . $HOME/.cargo/env && uv pip install --system -r requirements.txt
18
 
19
  # Copy application code
20
+ COPY --chown=user ./requirements.txt requirements.txt
21
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
22
+
23
+ COPY --chown=user . /app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
 
25
  # HuggingFace environment variables
26
  ENV HF_TOKEN=""