Skip to content

Commit e97bf35

Browse files
committed
feat: container
1 parent bde7313 commit e97bf35

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

Diff for: .dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/target
2+
tests/
3+

Diff for: Dockerfile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# syntax=docker/dockerfile:1
2+
3+
FROM rust:1.74.0-bullseye AS builder
4+
5+
COPY .git /app/.git
6+
COPY Cargo.lock Cargo.toml /app/
7+
COPY src/ /app/src/
8+
9+
RUN cargo build --release --manifest-path /app/Cargo.toml
10+
11+
FROM debian:bullseye
12+
13+
COPY --from=builder /app/target/release/gtfsort /usr/local/bin/
14+
15+
ENTRYPOINT ["/usr/local/bin/gtfsort"]

0 commit comments

Comments
 (0)