Skip to content

Commit

Permalink
Fix: Build docker process
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Luis Lucas committed Jun 19, 2019
1 parent 00835ca commit c0b327c
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,29 +24,19 @@ RUN apt update -qq && apt install -qq -y autoconf cmake

# Build C deps.
# This step acts as cache to avoid recompiling when Go code changes.
RUN git clone https://github.com/BBVA/qed.git /tmp/qed &&\
cd /tmp/qed &&\
RUN git clone https://github.com/BBVA/qed.git . &&\
git submodule update --init --recursive &&\
cd c-deps &&\
./builddeps.sh

# Warm Go modules cache.
RUN cd /tmp/qed &&\
./builddeps.sh &&\
go mod download

# Copy QED source from current working dir.
COPY . /go/src/github.com/bbva/qed

# Move C deps to current working dir.
RUN mv /tmp/qed/c-deps/* c-deps/

# Build QED, Storage binary and riot
RUN go build -o /usr/local/bin/qed &&\
go build -o /usr/local/bin/riot testutils/riot/riot.go &&\
go build -o /usr/local/bin/storage testutils/notifierstore.go

# Clean
RUN rm -rf /var/lib/apt/lists/* /tmp/qed
RUN rm -rf /var/lib/apt/lists/*

FROM ubuntu:19.10

Expand Down

0 comments on commit c0b327c

Please sign in to comment.