This repository has been archived on 2026-01-06. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
fej/Dockerfile

15 lines
309 B
Docker

# syntax=docker/dockerfile:1.2
FROM rustlang/rust:nightly AS builder
WORKDIR /usr/src/app
# Build the app
COPY . .
RUN --mount=type=cache,target=/usr/src/app/target cargo install --path .
FROM debian:buster-slim
COPY --from=builder /usr/local/cargo/bin/rust-api /usr/local/bin/rust-api
CMD ["rust-api"]