add client mode example. fix expose port.

This commit is contained in:
Bob
2024-07-10 22:59:38 -07:00
parent 72541c3933
commit 324222eebf
2 changed files with 21 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
FROM node:lts-slim as base
FROM node:lts-slim AS base
RUN npm i holesail -g
@@ -6,7 +6,7 @@ ENV MODE client
ENV HOST 0.0.0.0
ENV PORT 8989
EXPOSE $PORT
EXPOSE 8989
ENTRYPOINT sh -c ' \
if [ "$MODE" = "server" ]; then \