Files
mtusi2026lab2/Dockerfile
T
2026-10-29 17:16:55 +03:00

15 lines
420 B
Docker

FROM python:3.12.9-slim-bookworm
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt && useradd --uid 10001 --create-home messenger
COPY app ./app
COPY migrations ./migrations
COPY tests ./tests
COPY contracts ./contracts
COPY lab.json ./
COPY student-tests ./student-tests
USER messenger
EXPOSE 8080
CMD ["python", "-m", "app.main"]