mirror of
https://github.com/LostCityRS/Server
synced 2026-11-22 23:10:40 -05:00
feat: Simple dockerfile
This commit is contained in:
1 parent
bb35a270c6
commit
8618c06924
4 files changed
+28
-21
No files matched your search
@@ -0,0 +1,2 @@
|
||||
.git/
|
||||
node_modules/
|
||||
+17
@@ -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" ]
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user