feat: Simple dockerfile

This commit is contained in:
Pazaz committed 2025-10-21 02:20:46 -04:00
1 parent bb35a270c6
commit 8618c06924
4 files changed
+28 -21

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
.git/
node_modules/
+17
View File
@@ -0,0 +1,17 @@
FROM oven/bun:debian
RUN apt update
RUN apt install -y openjdk-17-jdk
USER bun
WORKDIR /opt/server
COPY --chown=bun:bun . .
WORKDIR /opt/server/engine
RUN bun install
RUN bun run build
WORKDIR /opt/server/engine
EXPOSE 8888/tcp
ENTRYPOINT [ "bun", "run", "quickstart" ]
+9 -12
View File
@@ -6,21 +6,18 @@ if errorlevel 1 (
exit /b
)
where /q node
if errorlevel 1 (
echo You must install Node to proceed: https://nodejs.org/en
exit /b
)
where /q bun
if errorlevel 1 (
npm i -g bun
)
where /q node
if errorlevel 0 (
npm i -g bun
)
where /q bun
if errorlevel 1 (
echo You must install Bun to proceed: https://bun.sh
exit /b
where /q bun
if errorlevel 1 (
echo You must install Bun to proceed: https://bun.sh
exit /b
)
)
where /q java
-9
View File
@@ -5,15 +5,6 @@ if ! command -v git 2>&1 >/dev/null; then
exit 1
fi
if ! command -v node 2>&1 >/dev/null; then
echo You must install Node to proceed
exit 1
fi
if ! command -v bun 2>&1 >/dev/null; then
npm i -g bun
fi
if ! command -v bun 2>&1 >/dev/null; then
echo You must install Bun to proceed
exit 1