26 lines · 880 B · Dockerfile
RawDownload
# syntax = docker/dockerfile:1.2 FROM rust:1.70-bullseye as builderWORKDIR appCOPY . . # Compile collab serverARG CARGO_PROFILE_RELEASE_PANIC=abortRUN --mount=type=cache,target=./script/node_modules \    --mount=type=cache,target=/usr/local/cargo/registry \    --mount=type=cache,target=./target \    cargo build --release --package collab --bin collab # Copy collab server binary out of cached directoryRUN --mount=type=cache,target=./target \    cp /app/target/release/collab /app/collab # Copy collab server binary to the runtime imageFROM debian:bullseye-slim as runtimeRUN apt-get update; \    apt-get install -y --no-install-recommends libcurl4-openssl-dev ca-certificatesWORKDIR appCOPY --from=builder /app/collab /app/collabCOPY --from=builder /app/crates/collab/migrations /app/migrationsENV MIGRATIONS_PATH=/app/migrationsENTRYPOINT ["/app/collab"]

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t