-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (24 loc) · 875 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM rust:1.83 as builder
WORKDIR /usr/src/myapp
COPY . .
ARG github_token
ARG CARGO_NET_GIT_FETCH_WITH_CLI=true
RUN git config --global credential.helper store && echo "https://zefanjajobse:${github_token}@github.com" > ~/.git-credentials && cargo install --path .
FROM debian:bookworm-slim
ENV token default_token_value
ENV name default_name_value
ENV channel default_channel_value
ENV minplayeramount '20'
ENV prevrequestcount '5'
ENV startedamount '50'
ENV guild default_guild_value
ENV lang 'en-us'
ENV guid 'none'
ENV ownerId 'none'
ENV platform 'pc'
ENV mins_between_avatar_change '1'
HEALTHCHECK --interval=5m --timeout=3s --start-period=5s \
CMD curl -f http://127.0.0.1:3030/ || exit 1
COPY --from=builder /usr/local/cargo/bin/discord_bot /usr/local/bin/discord_bot
RUN apt-get update && apt-get install --assume-yes curl && apt-get clean
CMD ["discord_bot"]