Browse Source

Add docker stuff

master
Colin Reeder 3 years ago
parent
commit
2d2f8ea205
2 changed files with 12 additions and 0 deletions
  1. +1
    -0
      .dockerignore
  2. +11
    -0
      Dockerfile

+ 1
- 0
.dockerignore View File

@@ -0,0 +1 @@
target

+ 11
- 0
Dockerfile View File

@@ -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"]

Loading…
Cancel
Save