Spaces:
Running
Running
Update dockerfile
Browse files- dockerfile +4 -16
dockerfile
CHANGED
@@ -1,23 +1,11 @@
|
|
1 |
-
FROM python:3.8
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
5 |
-
|
6 |
-
COPY requirements.txt .
|
7 |
-
RUN pip install -r requirements.txt
|
8 |
-
|
9 |
-
# Copy application code
|
10 |
-
COPY . .
|
11 |
|
12 |
-
|
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 |
-
|
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"]
|