Template
Add dockerignore file and update dockerfile to copy all files.
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
.*
|
||||||
|
Dockerfile
|
||||||
@@ -2,3 +2,4 @@
|
|||||||
main.py
|
main.py
|
||||||
pyproject.toml
|
pyproject.toml
|
||||||
settings.py
|
settings.py
|
||||||
|
Dockerfile
|
||||||
+3
-7
@@ -3,14 +3,10 @@ FROM python:3.12.3-slim
|
|||||||
# install uv
|
# install uv
|
||||||
COPY --from=ghcr.io/astral-sh/uv:0.6.5 /uv /uvx /bin/
|
COPY --from=ghcr.io/astral-sh/uv:0.6.5 /uv /uvx /bin/
|
||||||
|
|
||||||
WORKDIR /home
|
COPY . /${REPO_NAME}
|
||||||
|
|
||||||
COPY config.py config.py
|
|
||||||
COPY main.py main.py
|
|
||||||
COPY pyproject.toml pyproject.toml
|
|
||||||
|
|
||||||
COPY cogs cogs/
|
|
||||||
|
|
||||||
|
# Sync the project into a new environment, using the frozen lockfile
|
||||||
|
WORKDIR /${REPO_NAME}
|
||||||
RUN uv sync --frozen --no-dev
|
RUN uv sync --frozen --no-dev
|
||||||
|
|
||||||
CMD ["uv", "run", "./main.py"]
|
CMD ["uv", "run", "./main.py"]
|
||||||
Reference in New Issue
Block a user