services api
This commit is contained in:
17
ServicesBank/Email/Dockerfile
Normal file
17
ServicesBank/Email/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
WORKDIR /
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends gcc && rm -rf /var/lib/apt/lists/* && pip install --no-cache-dir poetry
|
||||
|
||||
COPY /ServicesBank/Email/pyproject.toml ./pyproject.toml
|
||||
|
||||
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi --no-root --only main && pip cache purge && rm -rf ~/.cache/pypoetry
|
||||
|
||||
COPY /ServicesBank/Email /
|
||||
COPY /ServicesApi/Controllers /ServicesApi/Controllers
|
||||
COPY /ServicesBank/Depends/config.py /ServicesBank/Depends/config.py
|
||||
|
||||
ENV PYTHONPATH=/ PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1
|
||||
|
||||
CMD ["poetry", "run", "python", "app.py"]
|
||||
Reference in New Issue
Block a user