-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
FROM rust:latest as builder | ||
FROM rust:slim | ||
|
||
WORKDIR /app | ||
|
||
COPY . . | ||
|
||
RUN cargo build --release | ||
RUN cargo install --path . | ||
|
||
FROM alpine | ||
|
||
RUN apk add gcompat libgcc | ||
|
||
WORKDIR /app | ||
|
||
EXPOSE 8000 | ||
|
||
ENV TELEGRAM_TARGET_CHAT = "" | ||
ENV TELEGRAM_BOT_TOKEN = "" | ||
ENV ROCKET_ADDRESS = "0.0.0.0" | ||
ENV ROCKET_ADDRESS = 0.0.0.0 | ||
ENV POLL_RATE = "10" | ||
ENV DEFAULT_TIMEOUT = "120" | ||
|
||
COPY --from=builder /app/target/release/heartbeat . | ||
|
||
CMD ["./heartbeat"] | ||
CMD heartbeat |