-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 1.09 KB
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 1.09 KB
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
ARG DIRIGIBLE_VERSION=latest
FROM amazoncorretto:21-alpine
VOLUME /tmp
RUN apk update && \
apk add --no-cache \
# Consolidating all apk adds to ensure one layer and the latest patches
ttyd \
nodejs \
npm \
git \
fontconfig ttf-dejavu ttf-liberation
# This forces npm to update itself and its internal dependencies
# to the latest versions available on the npm registry
# RUN npm install -g npm@latest # -> Commented, so that the ARM64 build don't timeout the GitHub Action (currently it takes ~6 hours).
# Install global npm packages
RUN npm i -g esbuild \
&& npm i -g typescript \
# Clean up npm cache to reduce image size
&& npm cache clean --force \
# cleanup of apk cache
&& rm -rf /var/cache/apk/*
COPY target/dirigible-application-*-executable.jar dirigible.jar
ENTRYPOINT ["java", "--add-opens", "java.base/java.lang=ALL-UNNAMED", "--add-opens", "java.base/java.lang.reflect=ALL-UNNAMED", "--add-opens", "java.base/java.nio=ALL-UNNAMED", "-jar", "/dirigible.jar"]
# 8080 for the spring boot application,
# 8081 for graalium debug port
EXPOSE 8080 8081