This repository was archived by the owner on Mar 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed
Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -39,24 +39,23 @@ ADD driver $DRIVER_REPO_PATH/driver
3939
4040WORKDIR $DRIVER_REPO_PATH/
4141
42- # build tests
43- RUN go test -c -o /tmp/fixtures.test ./driver/fixtures/
4442# build server binary
4543RUN go build -o /tmp/driver ./driver/main.go
44+ # build tests
45+ RUN go test -c -o /tmp/fixtures.test ./driver/fixtures/
4646
4747# =======================
4848# Stage 3: Driver Build
4949# =======================
5050FROM openjdk:8-jre-alpine
5151
52+
53+
5254LABEL maintainer="source{d}" \
5355 bblfsh.language="java"
5456
5557WORKDIR /opt/driver
5658
57- # copy driver manifest and static files
58- ADD .manifest.release.toml ./etc/manifest.toml
59-
6059# copy static files from driver source directory
6160ADD ./native/src/main/sh/native.sh ./bin/native
6261
@@ -65,13 +64,16 @@ ADD ./native/src/main/sh/native.sh ./bin/native
6564COPY --from=native /native/target/native-jar-with-dependencies.jar ./bin/
6665
6766
67+ # copy driver server binary
68+ COPY --from=driver /tmp/driver ./bin/
69+
6870# copy tests binary
6971COPY --from=driver /tmp/fixtures.test ./bin/
7072# move stuff to make tests work
7173RUN ln -s /opt/driver ../build
7274VOLUME /opt/fixtures
7375
74- # copy driver server binary
75- COPY --from=driver /tmp/driver ./bin/
76+ # copy driver manifest and static files
77+ ADD .manifest.release.toml ./etc/manifest.toml
7678
7779ENTRYPOINT ["/opt/driver/bin/driver" ]
You can’t perform that action at this time.
0 commit comments