-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·37 lines (25 loc) · 1.04 KB
/
Dockerfile
File metadata and controls
executable file
·37 lines (25 loc) · 1.04 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
34
35
36
37
FROM eclipse-temurin:11
LABEL "org.opencontainers.image.title"="jbang-action"
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.138.0"
LABEL "org.opencontainers.image.revision"="b9b191d2c07f1b678ec655d4b7e58320420dd92a"
LABEL org.opencontainers.image.source=https://github.com/jbangdev/jbang-action
COPY assembly/* /
## mkdir of .userPrefs is to fix https://github.com/jbangdev/jbang/issues/1831
RUN jar xf jbang-0.138.0.zip && \
rm jbang-0.138.0.zip && \
mv jbang-* jbang && \
chmod +x jbang/bin/jbang && \
mkdir -p $HOME/.java/.userPrefs
ENV PATH="${PATH}:/jbang/bin"
ADD ./entrypoint /bin/entrypoint
ENV SCRIPTS_HOME=/scripts
ENV JBANG_VERSION=0.138.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"]