neon-operator/Dockerfile

8 lines
274 B
Docker
Raw Normal View History

2024-05-25 10:51:02 -04:00
FROM rust:1.78
WORKDIR /build
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry --mount=type=cache,target=/build/target cargo build
WORKDIR /app
RUN --mount=type=cache,target=/build/target cp /build/target/debug/neon-operator /app/
CMD ["/app/neon-operator"]