21 lines
477 B
Docker
21 lines
477 B
Docker
ARG BASE_IMAGE=docker.m.daocloud.io/library/python:3.11-slim
|
|
FROM ${BASE_IMAGE}
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV PYTHONPATH=/app/src
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt ./requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY pyproject.toml ./pyproject.toml
|
|
COPY src ./src
|
|
COPY scripts ./scripts
|
|
COPY release ./release
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["uvicorn", "music_server.app:create_app", "--factory", "--host", "0.0.0.0", "--port", "8000"]
|