docker
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
JMARyA 2025-05-05 05:17:11 +02:00
parent d61c836ada
commit 3af7b892b2
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 26 additions and 0 deletions

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM rust:buster AS builder
RUN rustup default nightly
COPY . /app
WORKDIR /app
RUN cargo build --release --bin herd --features herd
FROM git.hydrar.de/navos/navos:latest
RUN pacman-key --init && pacman-key --populate archlinux && pacman-key --populate navos && pacman -Syu --noconfirm && pacman -Syu --noconfirm openssl-1.1
COPY --from=builder /app/target/release/herd /herd
WORKDIR /
CMD ["/herd"]

View file

@ -10,3 +10,11 @@ services:
- ./mosquitto/data:/mosquitto/data - ./mosquitto/data:/mosquitto/data
- ./mosquitto/log:/mosquitto/log - ./mosquitto/log:/mosquitto/log
restart: unless-stopped restart: unless-stopped
herd:
build: .
ports:
- 8080:8000
volumes:
- ./herd:/herd
restart: unless-stopped