We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8733fc9 commit 55d3927Copy full SHA for 55d3927
1 file changed
Dockerfile
@@ -1,18 +1,13 @@
1
-FROM python:3.9-alpine
+FROM python:3.9-slim
2
+
3
WORKDIR /app
4
-# Copy only required files and folders
5
-COPY app.py /app/
6
-COPY requirements.txt /app/
+COPY app.py requirements.txt /app/
7
COPY artifacts/ /app/artifacts/
8
COPY src/ /app/src/
9
COPY static/ /app/static/
10
COPY templates/ /app/templates/
11
12
-# Install OS dependencies
13
-RUN apk update && apk add --no-cache ffmpeg libsm6 libxext6 unzip aws-cli
14
-
15
-# Install Python dependencies
16
RUN pip install --no-cache-dir -r requirements.txt
17
18
-CMD ["python3", "app.py"]
+CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]
0 commit comments