From 0d1115909a52b9d4d5373cd5003f2f986c0c01d3 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 2 Sep 2024 10:34:55 +0300 Subject: vnext: publish using container --- vnext/server/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 vnext/server/Dockerfile (limited to 'vnext') diff --git a/vnext/server/Dockerfile b/vnext/server/Dockerfile new file mode 100644 index 00000000..37f8c896 --- /dev/null +++ b/vnext/server/Dockerfile @@ -0,0 +1,18 @@ +FROM node:20.17.0-bookworm-slim + +# Install app dependencies +COPY package.json . +COPY package-lock.json . +RUN npm install + +# Bundle APP files +COPY public/server.js . + +ENV NODE_ENV production +ENV NPM_CONFIG_LOGLEVEL warn +ENV DEBUG http + +# Expose the listening port of your app +EXPOSE 8081 + +CMD [ "node", "server.js" ] -- cgit v1.2.3