Add Containerfile, add musl target options
This commit is contained in:
parent
6d434ae4a4
commit
60af1c3d0b
2 changed files with 9 additions and 0 deletions
|
@ -10,3 +10,6 @@ reqwest = { version = "0.11.17", features = ["blocking", "json"] }
|
|||
rocket = "=0.5.0-rc.3"
|
||||
serde_json = "1.0.96"
|
||||
spaceapi = "0.9.0"
|
||||
|
||||
[target.x86_64-unknown-linux-musl.dependencies]
|
||||
openssl-sys = { version = "0.9.87", features = ["vendored"] }
|
||||
|
|
6
Containerfile
Normal file
6
Containerfile
Normal file
|
@ -0,0 +1,6 @@
|
|||
FROM docker.io/alpine
|
||||
COPY ./target/x86_64-unknown-linux-musl/release/spaceapi2prometheus /bin
|
||||
EXPOSE 8000
|
||||
ENV ROCKET_ADDRESS="0.0.0.0" ROCKET_PORT="8000"
|
||||
ENTRYPOINT ["/bin/spaceapi2prometheus"]
|
||||
CMD ["-u", "https://www.example.com/spaceapi", "-d", "60"]
|
Loading…
Add table
Add a link
Reference in a new issue