Skip to content
Snippets Groups Projects
Commit 7d5276c2 authored by Éloïs's avatar Éloïs
Browse files

build(docker): skip clang install on CI

parent ec803548
No related branches found
No related tags found
No related merge requests found
...@@ -8,13 +8,15 @@ ...@@ -8,13 +8,15 @@
FROM rust:1-buster as build FROM rust:1-buster as build
WORKDIR /root WORKDIR /root
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
clang
# Copy source tree # Copy source tree
COPY . . COPY . .
RUN test -x build/duniter || \
( \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y clang \
)
# build duniter # build duniter
ARG threads=1 ARG threads=1
RUN test -x build/duniter || \ RUN test -x build/duniter || \
...@@ -40,7 +42,7 @@ COPY --from=build /root/build/duniter /usr/local/bin/duniter ...@@ -40,7 +42,7 @@ COPY --from=build /root/build/duniter /usr/local/bin/duniter
COPY docker/docker-entrypoint /usr/local/bin/ COPY docker/docker-entrypoint /usr/local/bin/
# Configuration # Configuration
# rpc, rpc-ws, p2p, telemetry # rpc, rpc-ws, p2p, telemetry
EXPOSE 9933 9944 30333 9615 EXPOSE 9933 9944 30333 9615
VOLUME /var/lib/duniter VOLUME /var/lib/duniter
ENTRYPOINT ["docker-entrypoint"] ENTRYPOINT ["docker-entrypoint"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment