aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2020-11-13 21:23:13 -0500
committerGalen Guyer <galen@galenguyer.com>2020-11-13 21:23:13 -0500
commitf8005d511855da5cdca8e47745366ec9829b909d (patch)
tree954a5413dfab4b21edea609336dd44bb05c56b11 /Dockerfile
parentb9f608164dbc1f413751c2b556991bbe092f54cc (diff)
Add basic Dockerfile
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..e3859c0
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,10 @@
+FROM node:12.16.2 as build-deps
+WORKDIR /usr/src/app
+COPY package.json yarn.lock ./
+RUN yarn
+COPY . ./
+RUN yarn build
+
+FROM docker.galenguyer.com/nginx-auto/nginx-react
+COPY --from=build-deps /usr/src/app/build /var/www/html/
+CMD ["nginx", "-g", "daemon off;"]