blob: 9fc64b41c64bed4d3a7b7d4b99f81434af5bfbe5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
FROM openjdk:15-slim
MAINTAINER OpenDC Maintainers <opendc@atlarge-research.com>
# Obtain (cache) Gradle wrapper
COPY gradlew /app/
COPY gradle /app/gradle
WORKDIR /app
RUN ./gradlew --version
# Build project
COPY ./ /app/
RUN ./gradlew --no-daemon :installDist
FROM openjdk:15-slim
COPY --from=0 /app/build/install /opt/
COPY --from=0 /app/traces /opt/opendc/traces
WORKDIR /opt/opendc
CMD bin/opendc-web-runner
|