Add Containerfile, add musl target options

This commit is contained in:
George Kaklamanos 2023-05-23 19:18:34 +03:00
parent 6d434ae4a4
commit 60af1c3d0b
2 changed files with 9 additions and 0 deletions

6
Containerfile Normal file
View 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"]