Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +14 -1
Dockerfile
CHANGED
|
@@ -1,8 +1,21 @@
|
|
| 1 |
FROM python:3.10.8-slim
|
| 2 |
LABEL description="Sentiment classifier of tweets service"
|
|
|
|
|
|
|
| 3 |
WORKDIR /app
|
|
|
|
|
|
|
| 4 |
COPY requirements.txt /app/requirements.txt
|
|
|
|
|
|
|
|
|
|
| 5 |
RUN pip install -r requirements.txt
|
|
|
|
|
|
|
| 6 |
COPY . /app/
|
|
|
|
|
|
|
| 7 |
EXPOSE 6000
|
| 8 |
-
|
|
|
|
|
|
|
|
|
| 1 |
FROM python:3.10.8-slim
|
| 2 |
LABEL description="Sentiment classifier of tweets service"
|
| 3 |
+
|
| 4 |
+
# Set the working directory
|
| 5 |
WORKDIR /app
|
| 6 |
+
|
| 7 |
+
# Copy the requirements file into the container
|
| 8 |
COPY requirements.txt /app/requirements.txt
|
| 9 |
+
|
| 10 |
+
# Upgrade pip and install the dependencies
|
| 11 |
+
RUN pip install --upgrade pip
|
| 12 |
RUN pip install -r requirements.txt
|
| 13 |
+
|
| 14 |
+
# Copy the rest of the application code into the container
|
| 15 |
COPY . /app/
|
| 16 |
+
|
| 17 |
+
# Expose the port the app runs on
|
| 18 |
EXPOSE 6000
|
| 19 |
+
|
| 20 |
+
# Define the command to run the application
|
| 21 |
+
CMD ["python", "app.py"]
|