Files
hse-2026/homework/05-message-queue/solution/server/Dockerfile
T
2026-10-10 11:05:32 +03:00

14 lines
343 B
Docker

# syntax=docker/dockerfile:1
FROM python:3.12-slim
RUN apt-get update && apt-get install -y curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /server
COPY requirements.txt .
RUN --mount=type=cache,id=distsys-course-pip,target=/root/.cache/pip,sharing=locked \
pip install -r requirements.txt
COPY . .
CMD ["python3", "-u", "server.py"]