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

Add XDK Dockerfile #90

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
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
20 changes: 20 additions & 0 deletions xdk/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM openjdk:17-slim as Builder

RUN mkdir -p /tmp && mv ${JAVA_HOME} /tmp/jdk

FROM node:18.17.1-slim

ENV JAVA_HOME=/usr/local/jdk
ENV ECSTASY_HOME=/xqiz.it
ENV PATH $ECSTASY_HOME/bin:$JAVA_HOME/bin:$PATH

COPY --from=builder /tmp/jdk ${JAVA_HOME}
COPY build/xdk/ $ECSTASY_HOME/libexec/

RUN mkdir -p $ECSTASY_HOME/bin \
&& ln -s $ECSTASY_HOME/libexec/bin/linux_launcher $ECSTASY_HOME/bin/xec \
&& ln -s $ECSTASY_HOME/libexec/bin/linux_launcher $ECSTASY_HOME/bin/xtc \
&& ln -s $ECSTASY_HOME/libexec/bin/linux_launcher $ECSTASY_HOME/bin/xam

CMD ["/bin/sh"]