Started Dockerfile

This commit is contained in:
Jef Roosens 2021-06-19 11:54:46 +02:00
parent 9f004d1eb7
commit 6e19ac5a63
Signed by: Jef Roosens
GPG key ID: B580B976584B5F30
4 changed files with 68 additions and 1 deletions

16
Dockerfile Normal file
View file

@ -0,0 +1,16 @@
FROM rust:1.52-alpine3.13 AS builder
WORKDIR /src
COPY Cargo.toml Cargo.lock ./
COPY src ./src/
RUN cargo build \
--release
FROM alpine:3.13
COPY --from=builder /src/target/release/hilde /usr/local/bin/hilde
ENTRYPOINT [ "/usr/local/bin/hilde" ]