acecalisto3 commited on
Commit
beed02d
1 Parent(s): 700c8f3

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +4 -16
dockerfile CHANGED
@@ -1,23 +1,11 @@
1
- FROM python:3.8
2
 
3
  WORKDIR /app
4
 
5
- # Install dependencies
6
- COPY requirements.txt .
7
- RUN pip install -r requirements.txt
8
-
9
- # Copy application code
10
- COPY . .
11
 
12
- # Set environment variables (optional)
13
- # ENV HF_TOKEN="write_token"
14
-
15
- # Download and cache the code generation model
16
- RUN transformers-cli login
17
- RUN transformers-cli download Salesforce/codegen-350M-mono --cache_dir /app/.cache
18
 
19
- # Expose port for Gradio interface (optional)
20
- EXPOSE 7860
21
 
22
- # Run the application
23
  CMD ["python", "app.py"]
 
1
+ FROM python:3.8-slim
2
 
3
  WORKDIR /app
4
 
5
+ COPY . /app
 
 
 
 
 
6
 
7
+ RUN pip install -r requirements.txt
 
 
 
 
 
8
 
9
+ EXPOSE 5000
 
10
 
 
11
  CMD ["python", "app.py"]