[+] lab 2
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
FROM python:3.13.5-slim
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PYTHONPATH=/app/src
|
||||
WORKDIR /app
|
||||
COPY requirements.txt requirements-dev.txt requirements.lock ./
|
||||
RUN pip install --no-cache-dir -r requirements.lock && useradd --uid 10001 --create-home messenger
|
||||
COPY src/ src/
|
||||
COPY migrations/ migrations/
|
||||
COPY student-tests/ student-tests/
|
||||
COPY scripts/ scripts/
|
||||
COPY tests/ tests/
|
||||
COPY contracts/ contracts/
|
||||
COPY lab.json Makefile README.md COURSE.md CONTRIBUTING.md REPORT.md ./
|
||||
USER messenger
|
||||
EXPOSE 8080
|
||||
CMD ["sh", "-c", "python -m messenger.migrate && exec uvicorn messenger.app:create_app --factory --host 0.0.0.0 --port 8080 --no-access-log"]
|
||||
Reference in New Issue
Block a user