diff --git a/Dockerfile b/Dockerfile index 17f5855f3..a3f990bb9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ./ @@ -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"]