16 lines
467 B
Docker
Executable File
16 lines
467 B
Docker
Executable File
FROM python:3.12.16-slim-bookworm
|
|
|
|
WORKDIR /app
|
|
|
|
COPY backend/requirements.txt ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY backend ./backend/
|
|
COPY frontend ./frontend/
|
|
|
|
RUN useradd --uid 10001 --user-group --no-create-home --shell /usr/sbin/nologin darktariff
|
|
|
|
USER darktariff
|
|
|
|
CMD ["sh", "-c", "python -m backend.app.db.initialize && exec uvicorn backend.app.main:create_app --factory --host 0.0.0.0 --port 8080 --workers 4 --limit-concurrency 512"]
|