use raw alpine

This commit is contained in:
TonyChyi 2022-06-29 08:42:39 +08:00
parent 21f0419ef3
commit f67d618f67

View File

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