forked from mtusi2026/mtusi2026lab2
Implement messenger functionality
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
FROM python:3.13.2-slim@sha256:6b3223eb4d93718828223966ad316909c39813dee3ee9395204940500792b740
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY app ./app
|
||||
COPY migrations ./migrations
|
||||
COPY scripts ./scripts
|
||||
RUN useradd --uid 10001 --no-create-home appuser
|
||||
USER 10001
|
||||
EXPOSE 8080
|
||||
CMD ["sh", "-c", "python scripts/migrate.py && uvicorn app.main:app --host 0.0.0.0 --port 8080"]
|
||||
Reference in New Issue
Block a user