File tree Expand file tree Collapse file tree 3 files changed +51
-0
lines changed
Expand file tree Collapse file tree 3 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ .git
2+ .github
3+ target
4+ ui /node_modules
5+ ui /target
6+ ui /dist
7+ ui /.dioxus
8+ ** /* .log
9+ ** /* .tmp
Original file line number Diff line number Diff line change 1+ name : Publish Docker Image
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+ release :
9+ types :
10+ - published
11+
12+ permissions :
13+ contents : read
14+ packages : write
15+
16+ jobs :
17+ publish :
18+ uses : datum-cloud/actions/.github/workflows/publish-docker.yaml@v1
19+ with :
20+ image-name : datum-iroh-gateway
21+ secrets : inherit
Original file line number Diff line number Diff line change 1+ FROM rust:1.88-bookworm AS builder
2+
3+ WORKDIR /app
4+
5+ COPY . .
6+
7+ RUN cargo build -p datum-connect --release
8+
9+ FROM debian:bookworm-slim
10+
11+ RUN apt-get update \
12+ && apt-get install -y --no-install-recommends ca-certificates \
13+ && rm -rf /var/lib/apt/lists/* \
14+ && useradd -u 65532 -r -s /usr/sbin/nologin datum
15+
16+ COPY --from=builder /app/target/release/datum-connect /usr/local/bin/datum-connect
17+
18+ USER 65532:65532
19+
20+ ENTRYPOINT ["/usr/local/bin/datum-connect" ]
21+ CMD ["gateway" ]
You can’t perform that action at this time.
0 commit comments