~vpzom/bracketmonster

df9d1a529b22637516f67676593eb723b60a7e75 — Colin Reeder 4 years ago bd165fc
brackend: use alpine for docker
1 files changed, 4 insertions(+), 2 deletions(-)

M brackend/Dockerfile
M brackend/Dockerfile => brackend/Dockerfile +4 -2
@@ 1,9 1,11 @@
FROM rust:1.42-slim-stretch AS builder
FROM alpine:3.12 AS builder
RUN apk add --no-cache cargo
WORKDIR /usr/src/brackend
COPY Cargo.* ./
COPY src ./src
RUN cargo build --release

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