Some checks failed
Cargo Build & Test / Push to container registry (push) Failing after 15s
11 lines
300 B
Docker
11 lines
300 B
Docker
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"]
|
|
|