Files
Fran Arbanas b709d3ba0b Fix/pull from harbor (#5521)
* fix: pull from harbor instead of dockerhub

* add remaining

* add comments saying that these changes will only work with VPN
2025-02-28 14:01:33 +01:00

30 lines
833 B
Docker

# this will only work with VPN, otherwise remove the harbor part
FROM harbor.nymte.ch/dockerhub/rust:latest AS builder
COPY ./ /usr/src/nym
WORKDIR /usr/src/nym/nym-validator-rewarder
RUN cargo build --release
#-------------------------------------------------------------------
# The following environment variables are required at runtime:
#
#
# And optionally:
#
#
# see https://github.com/nymtech/nym/blob/develop/nym-validator-rewarder/src/cli/mod.rs for details
#-------------------------------------------------------------------
FROM harbor.nymte.ch/dockerhub/ubuntu:24.04
RUN apt-get update && apt-get install -y ca-certificates
WORKDIR /nym
COPY --from=builder /usr/src/nym/target/release/nym-validator-rewarder ./
COPY ./nym-validator-rewarder/entrypoint.sh /nym/entrypoint.sh
ENTRYPOINT [ "/nym/entrypoint.sh" ]