Update Dockerfile
Browse files- Dockerfile +5 -12
Dockerfile
CHANGED
@@ -1,17 +1,10 @@
|
|
1 |
-
#
|
2 |
-
FROM
|
3 |
|
4 |
-
# Set the working directory in the container to /app
|
5 |
WORKDIR /app
|
6 |
|
7 |
-
|
8 |
-
ADD . /app
|
9 |
|
10 |
-
|
11 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
-
|
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"]
|
|
|
|
|
|
|
|