From 4d2834006131e098cec0a6c8cf38431a5b29b595 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 3 Jul 2023 20:34:51 +0000 Subject: [PATCH] Dockerfile for building Application --- Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3a94c59 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +# specify the node base image with your desired version node: +FROM node:16 +# replace this with your application's default port +RUN apt-get update && apt-get install -y p7zip-full && rm -rf /var/lib/apt/lists/* + +WORKDIR /app +copy ./ /app +#RUN git clone https://gitea.simonzeyer.de/schuelerlabor-cleverlab/smarti.git /app + +#RUN chmod -R 777 /app +EXPOSE 3000 +ENV HOST='0.0.0.0' +ARG HOST='0.0.0.0' +RUN npm install --global serve +RUN npm install +# RUN npm install +CMD ["serve", "build", "-s"] +