forked from mtusi2026/mtusi2026lab7
lab7 completed
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
FROM python:3.12.10-slim
|
||||
ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
|
||||
WORKDIR /srv
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt && useradd --uid 10001 --create-home messenger
|
||||
COPY app app
|
||||
USER messenger
|
||||
ENTRYPOINT ["python", "-m", "app.credentials"]
|
||||
CMD ["uvicorn", "app.api:app", "--host", "127.0.0.1", "--port", "8080", "--no-access-log", "--no-proxy-headers", "--limit-concurrency", "48"]
|
||||
Reference in New Issue
Block a user