try alpine
This commit is contained in:
parent
2c72fd79f0
commit
21f0419ef3
@ -1,12 +1,13 @@
|
|||||||
FROM rust as build
|
FROM rust:alpine as build
|
||||||
|
|
||||||
|
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 rustup default nightly && cargo build --release
|
||||||
|
|
||||||
FROM debian:stable-slim
|
FROM alpine
|
||||||
|
|
||||||
RUN apt update && apt install -y proxychains4 ca-certificates && apt clean
|
RUN apk add --no-cache ca-certificates openssl
|
||||||
ENV TGBOT_TOKEN="" DATABASE_URI="" WRAPPER=""
|
ENV TGBOT_TOKEN="" DATABASE_URI="" WRAPPER=""
|
||||||
CMD ["-c", "${WRAPPER} ./saysthbot-reborn ${OPTIONS}"]
|
CMD ["-c", "${WRAPPER} ./saysthbot-reborn ${OPTIONS}"]
|
||||||
ENTRYPOINT [ "/bin/sh" ]
|
ENTRYPOINT [ "/bin/sh" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user