rural-dict/Dockerfile

8 lines
299 B
Docker
Raw Normal View History

2024-10-05 21:01:11 +00:00
FROM python:3.12.4-alpine
WORKDIR /app
COPY requirements.lock ./
RUN PYTHONDONTWRITEBYTECODE=1 pip install --no-cache-dir -r requirements.lock
COPY . .
CMD [ "uvicorn", "src.main:app", "--no-access-log", "--proxy-headers", \
"--forwarded-allow-ips", "*", "--host", "0.0.0.0", "--port", "5758" ]