Commit
·
6044b05
1
Parent(s):
0a6f6d8
Minor update to Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
|
@@ -2,12 +2,17 @@ FROM python:3.11.5-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 5 |
COPY app.py requirements.txt /app/
|
| 6 |
COPY src /app/src
|
| 7 |
COPY indexes /app/indexes
|
| 8 |
|
|
|
|
| 9 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 10 |
pip install --no-cache-dir -r requirements.txt
|
| 11 |
|
|
|
|
|
|
|
|
|
|
| 12 |
# Use ENTRYPOINT to specify the command to run when the container starts
|
| 13 |
ENTRYPOINT ["python", "app.py"]
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Copy the application files into the container
|
| 6 |
COPY app.py requirements.txt /app/
|
| 7 |
COPY src /app/src
|
| 8 |
COPY indexes /app/indexes
|
| 9 |
|
| 10 |
+
# Install dependencies
|
| 11 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 12 |
pip install --no-cache-dir -r requirements.txt
|
| 13 |
|
| 14 |
+
# Expose the port on which your application runs inside the container
|
| 15 |
+
EXPOSE 5555
|
| 16 |
+
|
| 17 |
# Use ENTRYPOINT to specify the command to run when the container starts
|
| 18 |
ENTRYPOINT ["python", "app.py"]
|