diff options
author | Vitaly Takmazov | 2024-09-02 10:34:55 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-09-02 10:34:55 +0300 |
commit | 0d1115909a52b9d4d5373cd5003f2f986c0c01d3 (patch) | |
tree | 98c3ddea90c30f230f7bad62bad3e1632506e629 /vnext | |
parent | 7b8a213808a579a5d044bfc82fe2e723eb10f93e (diff) |
vnext: publish using container
Diffstat (limited to 'vnext')
-rw-r--r-- | vnext/server/Dockerfile | 18 |
1 files changed, 18 insertions, 0 deletions
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" ] |