Add dockerignore file and update dockerfile to copy all files.

This commit is contained in:
2025-03-17 21:38:19 -04:00
parent b47a7f2282
commit 5edd4e9a0c
3 changed files with 7 additions and 8 deletions
+3 -7
View File
@@ -3,14 +3,10 @@ FROM python:3.12.3-slim
# install uv
COPY --from=ghcr.io/astral-sh/uv:0.6.5 /uv /uvx /bin/
WORKDIR /home
COPY config.py config.py
COPY main.py main.py
COPY pyproject.toml pyproject.toml
COPY cogs cogs/
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"]