summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 1ba5c2cf98a14fb2a1f772cd1b7fe9c6a63d73a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
FROM rust:1.45-alpine AS builder
RUN apk add --no-cache cargo openssl-dev
WORKDIR /usr/src/hitide
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/hitide/target/release/hitide /usr/bin/
CMD ["hitide"]