~vpzom/lotide

37a72cc8ec635a2204e8be57cc7f0f3476f8f7b8 — Colin Reeder 11 months ago 313adb8
Add Dockerfile
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.12 AS builder
RUN apk add --no-cache cargo openssl-dev
WORKDIR /usr/src/lotide
COPY Cargo.* ./
COPY src ./src
RUN cargo build --release

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