Files
discord-bot-template/Dockerfile
T

12 lines
267 B
Docker

FROM python:3.12.3-slim
# install uv
COPY --from=ghcr.io/astral-sh/uv:0.6.5 /uv /uvx /bin/
COPY . /${REPO_NAME}
# Sync the project into a new environment, using the frozen lockfile
WORKDIR /${REPO_NAME}
RUN uv sync --frozen --no-dev
CMD ["uv", "run", "./main.py"]