~vpzom/lotide

ref: a180781e02e14910f367bf2c704b84103e84b8c2 lotide/Dockerfile -rw-r--r-- 304 bytes
a180781e — Colin Reeder Include score and optionally your_vote in every post list (#109) 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
FROM alpine:3.12 AS builder
RUN apk add --no-cache cargo openssl-dev
WORKDIR /usr/src/lotide
COPY Cargo.* ./
COPY src ./src
COPY res ./res
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"]