Commit
·
84a772c
1
Parent(s):
71e04d6
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
FROM python:3.9
|
2 |
|
|
|
3 |
WORKDIR /code
|
4 |
|
|
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
|
7 |
-
|
8 |
-
|
9 |
-
# Copy the model to the container
|
10 |
-
COPY gyesibiney/Sentiment-review-analysis-roberta-3 .
|
11 |
|
12 |
-
#
|
13 |
-
|
14 |
|
15 |
# Expose the port the FastAPI app will run on
|
16 |
EXPOSE 7860
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
+
# Set the working directory
|
4 |
WORKDIR /code
|
5 |
|
6 |
+
# Copy the requirements file
|
7 |
COPY ./requirements.txt /code/requirements.txt
|
8 |
|
9 |
+
# Copy the file or directory into the image (adjust the path as needed)
|
10 |
+
COPY ./gyesibiney/Sentiment-review-analysis-roberta-3 /code/gyesibiney/Sentiment-review-analysis-roberta-3
|
|
|
|
|
11 |
|
12 |
+
# Install requirements
|
13 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
14 |
|
15 |
# Expose the port the FastAPI app will run on
|
16 |
EXPOSE 7860
|