This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal file
@ -0,0 +1,10 @@
|
||||
FROM rust:slim-buster
|
||||
RUN mkdir -p /opt/portnut
|
||||
COPY --chown=root --chmod=0755 ./src /opt/portnut/src
|
||||
COPY --chown=root --chmod=0755 ./Cargo.toml /opt/portnut/Cargo.toml
|
||||
RUN apt update
|
||||
RUN apt install libssl-dev openssl pkg-config -y
|
||||
WORKDIR /opt/portnut
|
||||
RUN cargo build --release
|
||||
RUN cp target/release/portnut /bin/portnut
|
||||
CMD ["/bin/portnut"]
|
Reference in New Issue
Block a user