Skip to content
Closed
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
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ COPY src/ src/
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/build/target \
SPACEBOT_SKIP_FRONTEND_BUILD=1 cargo build --release
SPACEBOT_SKIP_FRONTEND_BUILD=1 cargo build --release \
&& cp /build/target/release/spacebot /build/spacebot

# ---- Slim stage ----
# Minimal runtime with just the binary. No browser.
Expand All @@ -60,7 +61,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
&& rm -rf /var/lib/apt/lists/*

COPY --from=builder /build/target/release/spacebot /usr/local/bin/spacebot
COPY --from=builder /build/spacebot /usr/local/bin/spacebot
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh

Expand Down
Loading