Skip to content

Commit

Permalink
fix: Dockerfile port protocol (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
elementbound authored Dec 17, 2023
1 parent ed756d1 commit 0db49ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
FROM node:18-alpine
# From https://github.com/pnpm/pnpm/issues/4837

EXPOSE 8890/udp
# UDP host for remote address registration
EXPOSE 8809/udp
# TCP host for commands
EXPOSE 8890/tcp
# HTTP host for Prometheus metrics
EXPOSE 8891/tcp

COPY . noray
Expand All @@ -16,7 +20,7 @@ RUN npm i -g npm@latest; \
mkdir -p /usr/local/share/pnpm &&\
export PNPM_HOME="/usr/local/share/pnpm" &&\
export PATH="$PNPM_HOME:$PATH"; \
pnpm bin -g &&\
pnpm bin -g && \
# Install dependencies
pnpm install

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@foxssake/noray",
"version": "1.4.1",
"version": "1.4.2",
"description": "Online multiplayer orchestrator and potential game platform",
"main": "src/noray.mjs",
"bin": {
Expand Down

0 comments on commit 0db49ad

Please sign in to comment.