Skip to content

Commit

Permalink
fixed dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondolin committed Feb 20, 2022
1 parent a60cdb4 commit 62fa934
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions Dockerfile
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

0 comments on commit 62fa934

Please sign in to comment.