summaryrefslogtreecommitdiff
path: root/Dockerfile.client
diff options
context:
space:
mode:
authorElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-09-02 17:46:03 -0600
committerElizabeth Hunt <elizabeth.hunt@simponic.xyz>2023-09-02 17:46:03 -0600
commit19bea535ece0b76a640ab24f69a05ed61f4d9670 (patch)
tree2d17e324cb45eb336908ebadaa6dc8abc2647073 /Dockerfile.client
parent29ba1c29d7ada13a9e6d475ca880d121a85894ea (diff)
downloadjumpstorm-19bea535ece0b76a640ab24f69a05ed61f4d9670.tar.gz
jumpstorm-19bea535ece0b76a640ab24f69a05ed61f4d9670.zip
docker. minor updates that don't really need any message.
Diffstat (limited to 'Dockerfile.client')
-rw-r--r--Dockerfile.client20
1 files changed, 20 insertions, 0 deletions
diff --git a/Dockerfile.client b/Dockerfile.client
new file mode 100644
index 0000000..9b49798
--- /dev/null
+++ b/Dockerfile.client
@@ -0,0 +1,20 @@
+# build
+FROM node:18-alpine as build
+
+COPY . /app
+WORKDIR /app/client
+
+RUN npm install --save-dev
+RUN npm run build
+
+
+# serve via nginx
+FROM nginx:latest
+
+RUN rm /etc/nginx/conf.d/default.conf
+COPY nginx.conf /etc/nginx/conf.d/
+
+COPY --from=build /app/client/dist /usr/share/nginx/html
+
+EXPOSE 80
+CMD ["nginx", "-g", "daemon off;"]