Skip to content

Commit

Permalink
Dockerfile: run PeerServer with --debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Mar 4, 2024
1 parent 775dfed commit 40306e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/library/node:18.19.1 as build
FROM docker.io/library/node:20.11.1 as build
RUN mkdir /peer-server
WORKDIR /peer-server
COPY package.json package-lock.json ./
Expand All @@ -7,12 +7,12 @@ COPY . ./
RUN npm run build
RUN npm run test

FROM docker.io/library/node:18.19.1-alpine as production
FROM docker.io/library/node:20.11.1-alpine as production
RUN mkdir /peer-server
WORKDIR /peer-server
COPY package.json package-lock.json ./
RUN npm clean-install --omit=dev
COPY --from=build /peer-server/dist/bin/peerjs.js ./
ENV PORT 9000
ENV PORT 443
EXPOSE ${PORT}
ENTRYPOINT ["node", "peerjs.js"]
ENTRYPOINT ["node", "peerjs.js", "--port", "${PORT}", "--key", "peerjs", "--path", "/gamingcouch", "--debug"]

0 comments on commit 40306e5

Please sign in to comment.