v1.0 with SW PWA enabled

This commit is contained in:
Blomios
2026-01-01 17:40:53 +01:00
parent 1c0e22aac1
commit 3c8bebb2ad
29775 changed files with 2197201 additions and 119080 deletions

40
node/Dockerfile Normal file
View File

@ -0,0 +1,40 @@
# ---- Build Stage ----
FROM debian:bookworm AS builder
# Install Rust and build tools
RUN apt-get update && apt-get install -y curl build-essential pkg-config libssl-dev \
&& rm -rf /var/lib/apt/lists/*
# Install rustup (stable toolchain)
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
WORKDIR /app
# Cache Rust dependencies
COPY Cargo.toml Cargo.lock ./
RUN mkdir src && echo "fn main() {}" > src/main.rs
RUN cargo build --release || true
# Copy sources and build the real binary
COPY . .
RUN cargo build --release
# ---- Runtime Stage ----
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y libssl3 procps iputils-ping curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy data file
COPY processes.json /app/processes.json
# Copy compiled binary
COPY --from=builder /app/target/release/node /usr/local/bin/node-service
EXPOSE 8081
EXPOSE 8080
CMD ["node-service"]