-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (17 loc) · 683 Bytes
/
Dockerfile
File metadata and controls
23 lines (17 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.13-alpine
ARG DD_VERSION=dev
RUN apk add --no-cache bash libpq libffi \
&& pip install --no-cache-dir uv
COPY LICENSE.md README.md pyproject.toml uv.lock /spellbot/
RUN uv sync --no-cache --frozen --no-dev --directory ./spellbot --no-install-project
COPY scripts/start-spellbot.sh /start-spellbot.sh
COPY scripts/start-spellapi.sh /start-spellapi.sh
COPY scripts/start.sh /start.sh
RUN chmod +x /start-spellbot.sh /start-spellapi.sh /start.sh
COPY src /spellbot/src
RUN uv sync --no-cache --frozen --no-dev --directory ./spellbot \
&& pip uninstall -y uv
ENV PATH="/spellbot/.venv/bin:$PATH"
ENV DD_VERSION=$DD_VERSION
EXPOSE 80
CMD ["/start.sh", "spellbot"]