diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..7eaa663 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,2 @@ +.* +Dockerfile diff --git a/Dockerfile b/Dockerfile index 0b03a2b..3d26c95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . /off-cooldown-bot +# Sync the project into a new environment, using the frozen lockfile +WORKDIR /off-cooldown-bot RUN uv sync --frozen --no-dev CMD ["uv", "run", "./main.py"] \ No newline at end of file