Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions challenges/shrink-the-image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
FROM python:3.13

RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
vim
FROM python:3.13-alpine

WORKDIR /app
COPY . .

RUN pip install -r requirements.txt -r requirements-dev.txt
RUN pip install -r requirements.txt

RUN adduser -D shrink
USER shrink

EXPOSE 8000
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "app:app"]