This commit is contained in:
parent
d61c836ada
commit
3af7b892b2
2 changed files with 26 additions and 0 deletions
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
|
@ -10,3 +10,11 @@ services:
|
|||
- ./mosquitto/data:/mosquitto/data
|
||||
- ./mosquitto/log:/mosquitto/log
|
||||
restart: unless-stopped
|
||||
|
||||
herd:
|
||||
build: .
|
||||
ports:
|
||||
- 8080:8000
|
||||
volumes:
|
||||
- ./herd:/herd
|
||||
restart: unless-stopped
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue