aboutsummaryrefslogtreecommitdiff
path: root/vnext/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-09-02 10:34:55 +0300
committerGravatar Vitaly Takmazov2024-09-02 10:34:55 +0300
commit0d1115909a52b9d4d5373cd5003f2f986c0c01d3 (patch)
tree98c3ddea90c30f230f7bad62bad3e1632506e629 /vnext/server
parent7b8a213808a579a5d044bfc82fe2e723eb10f93e (diff)
vnext: publish using container
Diffstat (limited to 'vnext/server')
-rw-r--r--vnext/server/Dockerfile18
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" ]