-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile.native
36 lines (27 loc) · 1.05 KB
/
Dockerfile.native
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
27
28
29
30
31
32
33
34
35
36
FROM ghcr.io/graalvm/graalvm-ce:ol8-java11-21.1.0 as build
LABEL maintainer="VLINGO XOOM Team <[email protected]>"
ARG XOOM_HOME=/designer
WORKDIR $XOOM_HOME
COPY dist/designer ./dist/designer
COPY target/xoom-designer-*.jar ./xoom-designer.jar
COPY target/classes/META-INF/ ./classes/META-INF/
RUN gu install native-image
RUN native-image -jar xoom-designer.jar
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
RUN microdnf install autoconf automake libtool make tar \
glibc-devel \
libgcc.i686 glibc-devel.i686
ARG WORK_HOME=/work
ENV VLINGO_XOOM_DESIGNER_HOME=/work/designer/
ENV VLINGO_XOOM_DESIGNER_ENV=CONTAINER
WORKDIR $WORK_HOME
COPY --from=build /designer/xoom-designer /work/xoom-designer
COPY --from=build /designer/dist/ /work/designer/dist/
# set up permissions for farmer `1001`
RUN chmod 775 /work /work/xoom-designer \
&& chown -R 1001 /work \
&& chmod -R "g+rwX" /work \
&& chown -R 1001:root /work
EXPOSE 19090
USER 1001
ENTRYPOINT ["./xoom-designer", "designer", "--target", "zip-download", "-Xmx68m"]