mirror of
https://codeberg.org/icewind/wifi-prometheus-exporter.git
synced 2026-06-03 08:34:25 +02:00
add dockerfile
This commit is contained in:
parent
6de75d2190
commit
3c0e6994f0
2 changed files with 14 additions and 0 deletions
1
.dockerignore
Normal file
1
.dockerignore
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
target
|
||||||
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
FROM ekidd/rust-musl-builder AS build
|
||||||
|
|
||||||
|
ADD . ./
|
||||||
|
RUN sudo chown -R rust:rust .
|
||||||
|
|
||||||
|
RUN cargo build --release
|
||||||
|
|
||||||
|
FROM alpine
|
||||||
|
|
||||||
|
COPY --from=build /home/rust/src/target/x86_64-unknown-linux-musl/release/wifi-prometheus-exporter /
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
CMD ["/wifi-prometheus-exporter"]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue