mirror of
https://github.com/vacp2p/dst-gossipsub-test-node.git
synced 2026-01-10 15:48:18 -05:00
30 lines
545 B
Docker
30 lines
545 B
Docker
# Create the build image
|
|
FROM nimlang/nim:1.6.18 as build
|
|
|
|
# Copy the wls files to the production image
|
|
WORKDIR /node
|
|
COPY . .
|
|
|
|
RUN git config --global http.sslVerify false
|
|
|
|
RUN nimble install -dy
|
|
|
|
RUN nimble c -d:chronicles_colors=None --threads:on -d:metrics -d:libp2p_network_protocols_metrics -d:release main
|
|
|
|
|
|
FROM nimlang/nim:1.6.18
|
|
|
|
RUN apt-get install cron -y
|
|
|
|
WORKDIR /node
|
|
|
|
COPY --from=build /node/main /node/main
|
|
|
|
COPY cron_runner.sh .
|
|
|
|
RUN chmod +x cron_runner.sh
|
|
RUN chmod +x main
|
|
|
|
EXPOSE 5000 8008
|
|
|
|
ENTRYPOINT ["./cron_runner.sh"] |