added Dockerfile
Some checks failed
Cargo Build & Test / Push to container registry (push) Failing after 15s
Some checks failed
Cargo Build & Test / Push to container registry (push) Failing after 15s
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@@ -0,0 +1,10 @@
|
||||
FROM rust:1.67 as builder
|
||||
WORKDIR /usr/src/myapp
|
||||
COPY . .
|
||||
RUN cargo install --path .
|
||||
|
||||
FROM debian:bullseye-slim
|
||||
RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
|
||||
COPY --from=builder /usr/local/cargo/bin/workout /usr/local/bin/workout
|
||||
CMD ["workout"]
|
||||
|
Reference in New Issue
Block a user