Merlintxu commited on
Commit
9ef7dee
1 Parent(s): b23869a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -12
Dockerfile CHANGED
@@ -1,17 +1,10 @@
1
- # Use an official Python runtime as a parent image
2
- FROM python:3.8.9
3
 
4
- # Set the working directory in the container to /app
5
  WORKDIR /app
6
 
7
- # Add the current directory contents into the container at /app
8
- ADD . /app
9
 
10
- # Install any needed packages specified in requirements.txt
11
- RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Make port 80 available to the world outside this container
14
- EXPOSE 80
15
-
16
- # Run app.py when the container launches
17
- CMD ["python", "app.py"]
 
1
+ # Dockerfile
2
+ FROM huggingface/transformers-pytorch-gpu
3
 
 
4
  WORKDIR /app
5
 
6
+ COPY . .
 
7
 
8
+ RUN pip install -r requirements.txt
 
9
 
10
+ CMD ["streamlit", "run", "app.py"]