File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1010DB_PATH=" ${HOME} /.dstack/server/data/sqlite.db"
1111mkdir -p " $( dirname " $DB_PATH " ) "
1212if [[ -z " ${LITESTREAM_REPLICA_URL} " ]]; then
13- dstack server --host 0.0.0.0
13+ exec dstack server --host 0.0.0.0
1414else
1515 if [[ ! -f " $DB_PATH " ]]; then
1616 echo " Attempting Litestream restore..."
2323 fi
2424 fi
2525 fi
26- litestream replicate -exec " dstack server --host 0.0.0.0" " $DB_PATH " " $LITESTREAM_REPLICA_URL "
26+ exec litestream replicate -exec " dstack server --host 0.0.0.0" " $DB_PATH " " $LITESTREAM_REPLICA_URL "
2727fi
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y \
1111 curl \
1212 git \
1313 sqlite3 \
14+ tini \
1415 && rm -rf /var/lib/apt/lists/*
1516
1617RUN if [ $(uname -m) = "aarch64" ]; then ARCH="arm64" ; else ARCH="x86_64" ; fi && \
@@ -19,7 +20,7 @@ RUN if [ $(uname -m) = "aarch64" ]; then ARCH="arm64"; else ARCH="x86_64"; fi &&
1920
2021ADD https://astral.sh/uv/install.sh /uv-installer.sh
2122RUN sh /uv-installer.sh && rm /uv-installer.sh
22- ENV PATH="/root/.local/bin/:$PATH"
23+ ENV PATH="/root/.local/bin/:$PATH"
2324
2425RUN uv tool install "dstack[all]==$VERSION"
2526
@@ -28,4 +29,4 @@ RUN chmod 777 entrypoint.sh
2829
2930EXPOSE 3000
3031
31- ENTRYPOINT ["./entrypoint.sh" ]
32+ ENTRYPOINT ["/usr/bin/tini" , "--" , " ./entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ RUN apt-get update && apt-get install -y \
99 curl \
1010 git \
1111 sqlite3 \
12+ tini \
1213 && rm -rf /var/lib/apt/lists/*
1314
1415RUN if [ $(uname -m) = "aarch64" ]; then ARCH="arm64" ; else ARCH="x86_64" ; fi && \
@@ -28,4 +29,4 @@ RUN chmod 777 entrypoint.sh
2829
2930EXPOSE 3000
3031
31- ENTRYPOINT ["./entrypoint.sh" ]
32+ ENTRYPOINT ["/usr/bin/tini" , "--" , " ./entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments