forked from MarquezProject/marquez
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
22 lines (20 loc) · 651 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM openjdk:8-jdk AS base
WORKDIR /usr/src/app
COPY gradle gradle
COPY gradle.properties gradle.properties
COPY gradlew gradlew
COPY settings.gradle settings.gradle
RUN ./gradlew --version
FROM base AS build
WORKDIR /usr/src/app
COPY src ./src
COPY build.gradle build.gradle
RUN ./gradlew --no-daemon shadowJar
FROM openjdk:8-jre
RUN apt-get update && apt-get install -y --no-install-recommends postgresql-client-9.6
WORKDIR /usr/src/app
COPY --from=build /usr/src/app/build/libs/marquez-*.jar /usr/src/app
COPY docker/config.dev.yml config.dev.yml
COPY docker/entrypoint.sh entrypoint.sh
EXPOSE 5000 5001
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]