first commit
This commit is contained in:
commit
2da598738b
15 changed files with 3758 additions and 0 deletions
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
# Stage 1: Build
|
||||
FROM rustlang/rust:nightly AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY Cargo.toml Cargo.lock ./
|
||||
COPY src ./src
|
||||
|
||||
RUN cargo build --release
|
||||
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/target/release/timezone-db /usr/local/bin/app
|
||||
|
||||
ENV RUST_LOG=info
|
||||
|
||||
CMD ["/usr/local/bin/app"]
|
Loading…
Add table
Add a link
Reference in a new issue