Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker/server/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fi
DB_PATH="${HOME}/.dstack/server/data/sqlite.db"
mkdir -p "$(dirname "$DB_PATH")"
if [[ -z "${LITESTREAM_REPLICA_URL}" ]]; then
dstack server --host 0.0.0.0
exec dstack server --host 0.0.0.0
else
if [[ ! -f "$DB_PATH" ]]; then
echo "Attempting Litestream restore..."
Expand All @@ -23,5 +23,5 @@ else
fi
fi
fi
litestream replicate -exec "dstack server --host 0.0.0.0" "$DB_PATH" "$LITESTREAM_REPLICA_URL"
exec litestream replicate -exec "dstack server --host 0.0.0.0" "$DB_PATH" "$LITESTREAM_REPLICA_URL"
fi
5 changes: 3 additions & 2 deletions docker/server/release/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y \
curl \
git \
sqlite3 \
tini \
&& rm -rf /var/lib/apt/lists/*

RUN if [ $(uname -m) = "aarch64" ]; then ARCH="arm64"; else ARCH="x86_64"; fi && \
Expand All @@ -19,7 +20,7 @@ RUN if [ $(uname -m) = "aarch64" ]; then ARCH="arm64"; else ARCH="x86_64"; fi &&

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"
ENV PATH="/root/.local/bin/:$PATH"

RUN uv tool install "dstack[all]==$VERSION"

Expand All @@ -28,4 +29,4 @@ RUN chmod 777 entrypoint.sh

EXPOSE 3000

ENTRYPOINT ["./entrypoint.sh"]
ENTRYPOINT ["/usr/bin/tini", "--", "./entrypoint.sh"]
3 changes: 2 additions & 1 deletion docker/server/stgn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y \
curl \
git \
sqlite3 \
tini \
&& rm -rf /var/lib/apt/lists/*

RUN if [ $(uname -m) = "aarch64" ]; then ARCH="arm64"; else ARCH="x86_64"; fi && \
Expand All @@ -28,4 +29,4 @@ RUN chmod 777 entrypoint.sh

EXPOSE 3000

ENTRYPOINT ["./entrypoint.sh"]
ENTRYPOINT ["/usr/bin/tini", "--", "./entrypoint.sh"]