Fix Dockerfile

This commit is contained in:
spikecodes 2020-11-17 21:45:15 -08:00
parent 7ae54e2f77
commit 4f379754f7

View file

@ -1,9 +1,9 @@
FROM rust:latest as builder
FROM rust:alpine as builder
WORKDIR /usr/src/libreddit
COPY . .
RUN apk add --no-cache g++ openssl-dev
RUN cargo install --path .
FROM debian:buster-slim
RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
FROM alpine:latest
COPY --from=builder /usr/local/cargo/bin/libreddit /usr/local/bin/libreddit
CMD ["libreddit"]