-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile_build
26 lines (25 loc) · 992 Bytes
/
Dockerfile_build
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
26
FROM ubuntu:16.04 as builder
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -qq update && apt-get dist-upgrade -y && apt-get install -qq --no-install-recommends --allow-unauthenticated -y \
openjdk-8-jdk \
openjfx \
python3-pip \
maven \
git-all \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir code
COPY . /code
WORKDIR /code
RUN mvn package
# ENTRYPOINT java -jar /code/target/javafxlibrary-*-SNAPSHOT-jar-with-dependencies.jar
FROM ubuntu:16.04
COPY --from=builder /code/target/javafxlibrary-*-jar-with-dependencies.jar /
COPY --from=builder /code/target/javafxlibrary-*-tests.jar /
RUN echo "Built following jar files" && ls -latr /*.jar
COPY entrypoint_build.sh /.
RUN apt-get -qq update && apt-get dist-upgrade -y && apt-get install -qq --no-install-recommends --allow-unauthenticated -y \
openjdk-8-jre \
openjfx \
&& rm -rf /var/lib/apt/lists/* && chmod 555 /javafxlibrary-*-jar-with-dependencies.jar /entrypoint_build.sh
EXPOSE 8270
ENTRYPOINT /entrypoint_build.sh