-
-
Notifications
You must be signed in to change notification settings - Fork 223
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (22 loc) · 790 Bytes
/
Dockerfile
File metadata and controls
31 lines (22 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM python:3.11-slim
ARG VERSION
ENV VERSION=$VERSION
ENV PYTHONUNBUFFERED=1
ENV DSTACK_SERVER_LOG_FORMAT=json
WORKDIR /dstack-server
RUN apt-get update && apt-get install -y \
curl \
git \
sqlite3 \
&& rm -rf /var/lib/apt/lists/*
RUN if [ $(uname -m) = "aarch64" ]; then ARCH="arm64"; else ARCH="amd64"; fi && \
curl https://github.com/benbjohnson/litestream/releases/download/v0.3.9/litestream-v0.3.9-linux-$ARCH.deb -O -L && \
dpkg -i litestream-v0.3.9-linux-$ARCH.deb
ADD https://astral.sh/uv/install.sh /uv-installer.sh
RUN sh /uv-installer.sh && rm /uv-installer.sh
ENV PATH="/root/.local/bin/:$PATH"
RUN uv tool install "dstack[all]==$VERSION"
COPY entrypoint.sh entrypoint.sh
RUN chmod 777 entrypoint.sh
EXPOSE 3000
ENTRYPOINT ["./entrypoint.sh"]