From f67d618f673f3fa4e64df969b05e3234e0adaedc Mon Sep 17 00:00:00 2001 From: TonyChyi Date: Wed, 29 Jun 2022 08:42:39 +0800 Subject: [PATCH] use raw alpine --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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