first commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
WORKDIR /app/apps/secretary-api
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends build-essential default-libmysqlclient-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY apps/secretary-api/pyproject.toml ./pyproject.toml
|
||||
COPY apps/secretary-api/README.md ./README.md
|
||||
COPY apps/secretary-api/alembic.ini ./alembic.ini
|
||||
COPY apps/secretary-api/alembic ./alembic
|
||||
COPY apps/secretary-api/app ./app
|
||||
|
||||
RUN pip install --no-cache-dir --upgrade pip \
|
||||
&& pip install --no-cache-dir .
|
||||
|
||||
CMD ["sh", "-c", "alembic upgrade head && uvicorn app.main:app --host 0.0.0.0 --port 8010"]
|
||||
Reference in New Issue
Block a user