aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2021-01-25 18:39:23 +0000
committers-ol <s+removethis@s-ol.nu>2021-01-25 19:38:07 +0000
commitfeb9f58e87293ec6898add94933a4cd00f28cf27 (patch)
tree409e9fbdc090378b5551424a90b6ad8c0733c554 /Dockerfile
downloadfedidag-feb9f58e87293ec6898add94933a4cd00f28cf27.tar.gz
fedidag-feb9f58e87293ec6898add94933a4cd00f28cf27.zip
initial commit
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..7fa9402
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,10 @@
+FROM node AS build-env
+WORKDIR /build
+COPY package.json /build/
+RUN npm i
+COPY . /build/
+RUN npm run build
+
+FROM nginx:alpine
+COPY --from=build-env /build/dist /usr/share/nginx/html
+RUN chmod 555 -R /usr/share/nginx/html