Fix Dockerfile
This commit is contained in:
parent
7ae54e2f77
commit
4f379754f7
@ -1,9 +1,9 @@
|
|||||||
FROM rust:latest as builder
|
FROM rust:alpine as builder
|
||||||
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 debian:buster-slim
|
FROM alpine:latest
|
||||||
RUN apt-get update && apt-get install -y extra-runtime-dependencies && rm -rf /var/lib/apt/lists/*
|
|
||||||
COPY --from=builder /usr/local/cargo/bin/libreddit /usr/local/bin/libreddit
|
COPY --from=builder /usr/local/cargo/bin/libreddit /usr/local/bin/libreddit
|
||||||
CMD ["libreddit"]
|
CMD ["libreddit"]
|
Loading…
Reference in New Issue
Block a user