more
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM alpine as build
|
||||
|
||||
ENV RUSTFLAGS="-C target-feature=-crt-static"
|
||||
WORKDIR /usr/src/saysthbot
|
||||
COPY . .
|
||||
RUN apk add --no-cache rustup openssl-dev build-base && rustup-init -y --default-toolchain nightly && source ${HOME}/.cargo/env && cargo build --release
|
||||
|
||||
FROM alpine
|
||||
|
||||
RUN apk add --no-cache ca-certificates openssl libgcc
|
||||
ENV TGBOT_TOKEN="" DATABASE_URI="" WRAPPER=""
|
||||
CMD ["-c", "${WRAPPER} ./hangitbot ${OPTIONS}"]
|
||||
ENTRYPOINT [ "/bin/sh" ]
|
||||
|
||||
COPY --from=build /usr/src/saysthbot/target/release/hangitbot ./
|
Reference in New Issue
Block a user