Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM rust:1.76-alpine3.19 as builder
FROM rust:1.94-alpine3.23 AS builder

WORKDIR /app
COPY ./ /app

RUN apk add --no-cache musl-dev git cmake make g++
RUN cargo build --release --bin stat_server
RUN apk add --no-cache musl-dev linux-headers git cmake make g++
RUN cargo build --release --locked --bin stat_server
RUN strip /app/target/release/stat_server

FROM scratch as production
FROM scratch AS production
LABEL maintainer="doge.py@gmail.com" \
description="A simple server monitoring tool"

Expand Down