Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Dockerfile #424

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions misc/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
FROM alpine:latest
FROM gradle:jdk21-alpine

MAINTAINER [email protected]

ARG KSCRIPT_VERSION=4.1.1
ARG KOTLIN_VERSION=1.7.21
ARG KSCRIPT_VERSION=4.2.3
ARG KOTLIN_VERSION=1.9.24

RUN \
# Install bash & Java \
apk add bash openjdk11 && \
\
# Install bash \
apk add bash && \
# Create temp dir
cd $(mktemp -d) && \
\
Expand All @@ -29,8 +28,9 @@ cd $(mktemp -d) && \

WORKDIR /w

ENTRYPOINT KOTLIN_HOME=/opt/kotlinc \
PATH=/opt/kotlinc/bin:$PATH \
kscript "$0" "$@"
ENV KOTLIN_HOME=/opt/kotlinc
ENV PATH=/opt/kotlinc/bin:$PATH

ENTRYPOINT kscript "$0" "$@"

CMD [ "--help" ]