Skip to content

Commit 55d3927

Browse files
committed
updated dockerfile
1 parent 8733fc9 commit 55d3927

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

Dockerfile

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
1-
FROM python:3.9-alpine
1+
FROM python:3.9-slim
2+
23
WORKDIR /app
34

4-
# Copy only required files and folders
5-
COPY app.py /app/
6-
COPY requirements.txt /app/
5+
COPY app.py requirements.txt /app/
76
COPY artifacts/ /app/artifacts/
87
COPY src/ /app/src/
98
COPY static/ /app/static/
109
COPY templates/ /app/templates/
1110

12-
# Install OS dependencies
13-
RUN apk update && apk add --no-cache ffmpeg libsm6 libxext6 unzip aws-cli
14-
15-
# Install Python dependencies
1611
RUN pip install --no-cache-dir -r requirements.txt
1712

18-
CMD ["python3", "app.py"]
13+
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"]

0 commit comments

Comments
 (0)