refactor: rename DockerfileTest back to Dockerfile
This commit is contained in:
26
Dockerfile
Normal file
26
Dockerfile
Normal file
@@ -0,0 +1,26 @@
|
||||
FROM python:3.13-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV PYTHONPATH=/app/ \
|
||||
PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
POETRY_NO_INTERACTION=1 \
|
||||
POETRY_VIRTUALENVS_CREATE=false \
|
||||
POETRY_CACHE_DIR=/tmp/poetry_cache
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN apt-get update \
|
||||
&& pip install --no-cache-dir poetry \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY pyproject.toml README.md ./
|
||||
|
||||
COPY src/ ./src/
|
||||
|
||||
RUN poetry install --no-ansi && rm -rf $POETRY_CACHE_DIR
|
||||
|
||||
EXPOSE 8010
|
||||
|
||||
CMD ["poetry", "run", "uvicorn", "src.naliiabotapi.main:app", "--host", "0.0.0.0", "--port", "8010", "--reload"]
|
||||
Reference in New Issue
Block a user