File size: 357 Bytes
d82bbe4
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
FROM python:3.11-slim AS runtime
RUN apt-get update && apt-get install -y --no-install-recommends \
        build-essential gcc \
    && rm -rf /var/lib/apt/lists/*
COPY requirements.txt /tmp/requirements.txt
RUN python -m pip install --no-cache-dir -r /tmp/requirements.txt
RUN useradd -ms /bin/bash appuser
USER appuser
WORKDIR /app
ENTRYPOINT ["python"]