~vpzom/hitide

2acb05fad9fb8ff7c7cf58a456ee6d4d1e95931d — Colin Reeder 1 year, 3 months ago c67ad43
Maybe fix dockerfile
1 files changed, 8 insertions(+), 4 deletions(-)

M Dockerfile
M Dockerfile => Dockerfile +8 -4
@@ 1,12 1,16 @@
FROM rust:1.45-alpine AS builder
RUN apk add --no-cache cargo openssl-dev
FROM rust:1.45-slim-buster AS builder
RUN apt-get update \
	&& apt-get install -y libssl-dev pkg-config \
	&& rm -rf /var/lib/apt/lists/*
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
FROM debian:buster-slim
RUN apt-get update \
	&& apt-get install -y openssl \
	&& rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/src/hitide/target/release/hitide /usr/bin/
CMD ["hitide"]