-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
executable file
·38 lines (25 loc) · 1000 Bytes
/
Dockerfile
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
37
38
FROM adoptopenjdk:11-jdk-hotspot
LABEL "org.opencontainers.image.title"="jbang"
LABEL "org.opencontainers.image.description"="Unleash the power of Java"
LABEL "org.opencontainers.image.url"="https://jbang.dev"
LABEL "org.opencontainers.image.licenses"="MIT"
LABEL "org.opencontainers.image.version"="0.124.0"
LABEL "org.opencontainers.image.revision"="44067df3442654cb0d612fa76b9032f06ca7a799"
COPY assembly/* /
## mkdir of .userPrefs is to fix https://github.com/jbangdev/jbang/issues/1831
RUN jar xf jbang-0.124.0.zip && \
rm jbang-0.124.0.zip && \
mv jbang-* jbang && \
chmod +x jbang/bin/jbang && \
mkdir -p $HOME/.java/.userPrefs
VOLUME /scripts
ENV PATH="${PATH}:/jbang/bin"
ADD ./entrypoint /bin/entrypoint
ENV SCRIPTS_HOME /scripts
ENV JBANG_VERSION 0.124.0
ENV JBANG_PATH=/jbang/bin
VOLUME /scripts
ENV PATH="${PATH}:/jbang/bin"
## github action does not allow writing to $HOME thus routing this elsewhere
ENV JBANG_DIR="/jbang/.jbang"
ENTRYPOINT ["entrypoint"]