-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (23 loc) · 893 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM golang:1.16 AS gobuilder
WORKDIR /compile
RUN export PATH=$PATH:$(go env GOPATH)/bin
RUN GO111MODULE=on GOBIN=`pwd` go install github.com/chrusty/protoc-gen-jsonschema/cmd/[email protected]
FROM gradle:7.5.1-jdk11 AS build
ARG release_version=0.0.0
COPY ./ .
COPY --from=gobuilder /compile ./src/main/resources
RUN gradle --no-daemon clean build dockerPrepare -Prelease_version=${release_version}
FROM adoptopenjdk/openjdk11:alpine
ENV CRADLE_INSTANCE_NAME=instance1 \
CASSANDRA_DATA_CENTER=kos \
CASSANDRA_HOST=cassandra \
CASSANDRA_PORT=9042 \
CASSANDRA_KEYSPACE=demo \
CASSANDRA_USERNAME=guest \
CASSANDRA_PASSWORD=guest \
HTTP_PORT=8080 \
HTTP_HOST=localhost
WORKDIR /home
COPY --from=gobuilder /compile .
COPY --from=build /home/gradle/build/docker .
ENTRYPOINT ["/home/service/bin/service", "run", "com.exactpro.th2.actuibackend.MainKt"]