Fix Dockerfile

This commit is contained in:
Spike 2021-02-10 01:31:28 +00:00 committed by GitHub
parent 6feb347c27
commit 16454213cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,9 +1,8 @@
FROM rust:alpine as builder FROM rust:latest
WORKDIR /usr/src/libreddit WORKDIR /usr/src/libreddit
COPY . . COPY . .
RUN apk add --no-cache g++ openssl-dev
RUN cargo install --path . RUN cargo install --path .
FROM alpine:latest CMD ["libreddit"]
COPY --from=builder /usr/local/cargo/bin/libreddit /usr/local/bin/libreddit
CMD ["libreddit"]