~vpzom/crepo

2d2f8ea205b880bc0158f2b993e75b0c7db15bf2 — Colin Reeder 5 years ago d571431
Add docker stuff
2 files changed, 12 insertions(+), 0 deletions(-)

A .dockerignore
A Dockerfile
A .dockerignore => .dockerignore +1 -0
@@ 0,0 1,1 @@
target

A Dockerfile => Dockerfile +11 -0
@@ 0,0 1,11 @@
FROM alpine:3.9 AS builder
RUN apk add --no-cache rust cargo openssl-dev
WORKDIR /usr/src/crepo
COPY Cargo.* ./
COPY src ./src
RUN cargo build --release

FROM alpine:3.9
RUN apk add --no-cache libgcc openssl
COPY --from=builder /usr/src/crepo/target/release/crepo /usr/bin/
CMD ["crepo"]