Skip to content

Add Basic Dockerfile #294

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

Draft
wants to merge 3 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
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM gradle:8 AS builder

WORKDIR /home/gradle

COPY . .

RUN ./gradlew build

FROM openjdk:25-slim

RUN apt update && apt install unzip && rm -rf /var/cache/apt/archives /var/lib/apt/lists/*

COPY --from=builder /home/gradle/build/distributions/osh-core-osgi-2.0-beta2.zip /root/osh.zip

WORKDIR /root

RUN unzip osh.zip

WORKDIR /root/osh-core-osgi-2.0-beta2

CMD ["sh", "launch.sh"]

EXPOSE 8181
Loading