diff --git a/Dockerfile b/Dockerfile index 468cdc7..c4d5373 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM rust:alpine as build +FROM alpine as build ENV RUSTFLAGS="-C target-feature=-crt-static" WORKDIR /usr/src/saysthbot COPY . . -RUN rustup default nightly && cargo build --release +RUN apk add --no-cache rustup openssl-dev && rustup default nightly && cargo build --release FROM alpine