summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 436ad214256d4f1611184c7c8203b1202aab7a7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM alpine:3.12 AS builder
RUN apk add --no-cache cargo openssl-dev
WORKDIR /usr/src/lotide
COPY Cargo.* ./
COPY build.rs ./
COPY src ./src
COPY res ./res
COPY migrations ./migrations
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"]