Sonny4Sonnix commited on
Commit
0cc251d
·
1 Parent(s): 2f82684

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -5
Dockerfile CHANGED
@@ -1,5 +1,3 @@
1
- FROM python:3.10.6
2
-
3
  # Set the working directory in the container
4
  WORKDIR /app
5
 
@@ -12,8 +10,8 @@ RUN pip install --no-cache-dir -r requirements.txt
12
  # Install any dependencies your application may have
13
  RUN pip install fastapi transformers uvicorn
14
 
15
- # Copy the Sonny4Sonnix/Sonny4Sonnix/DistilBert_Movie_Sentiment_Analysis_1 link to the container
16
- COPY Sonny4Sonnix/twitter-roberta-base-sentimental-analysis-of-covid-tweets .
17
 
18
  # Copy the current directory contents into the container at /app
19
  COPY . /app
@@ -22,4 +20,4 @@ COPY . /app
22
  EXPOSE 7860
23
 
24
  # Command to run the FastAPI application when the container starts
25
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
1
  # Set the working directory in the container
2
  WORKDIR /app
3
 
 
10
  # Install any dependencies your application may have
11
  RUN pip install fastapi transformers uvicorn
12
 
13
+ # Download the resource during Docker build
14
+ RUN transformers-cli repo clone Sonny4Sonnix/twitter-roberta-base-sentimental-analysis-of-covid-tweets
15
 
16
  # Copy the current directory contents into the container at /app
17
  COPY . /app
 
20
  EXPOSE 7860
21
 
22
  # Command to run the FastAPI application when the container starts
23
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]