From a8e66bf29ee122428fa9a53d2e13562509f0620c Mon Sep 17 00:00:00 2001
From: Michelle Weidling <weidling@sub.uni-goettingen.de>
Date: Mon, 26 Jun 2023 14:44:11 +0200
Subject: [PATCH] build: add first draft for Docker

---
 Dockerfile | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
 create mode 100644 Dockerfile

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..13ea272
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,20 @@
+FROM node:lts-alpine as build-stage
+
+# make the 'app' folder the current working directory
+WORKDIR /app
+
+# copy both 'package.json' and 'package-lock.json' (if available)
+COPY package*.json ./
+
+# install project dependencies
+RUN npm install
+
+# copy project files and folders to the current working directory (i.e. 'app' folder)
+COPY . .
+RUN npm run build
+
+# production stage
+FROM nginx:stable-alpine as production-stage
+COPY --from=build-stage /app/dist /usr/share/nginx/html
+EXPOSE 8093
+CMD ["nginx", "-g", "daemon off;"]
\ No newline at end of file
-- 
GitLab