feat: added a relay for gatus statuses and changes the url it uses

This commit is contained in:
Strix 2023-10-16 01:36:01 +02:00
parent 39134b5229
commit 43d05fadc4
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
8 changed files with 1910 additions and 4 deletions

View file

@ -1,3 +1,16 @@
FROM nginx
FROM rust
COPY public /usr/share/nginx/html
WORKDIR /usr/src/app
# first cargo files to cache dependencies
COPY Cargo.toml Cargo.lock ./
RUN mkdir src && \
echo "fn main() {println!(\"if you see this, the build broke\")}" > src/main.rs && \
cargo build --release
RUN rm -rf src target/release/deps/ixvd_web*
COPY . .
RUN cargo build --release
EXPOSE 8080
CMD ["./target/release/ixvd-web"]