From 7d8e7131ecd65d51bc3c7967950f81be11a6f393 Mon Sep 17 00:00:00 2001
From: Samuel Galson <samgalson@gmail.com>
Date: Mon, 8 Jan 2018 17:13:14 +0000
Subject: [PATCH] add dockerfile

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

diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 000000000..5c15f57cb
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,26 @@
+FROM pubsweet/pubsweet:base
+
+COPY package.json yarn.lock ./
+COPY lerna.json .eslintignore .eslintrc .prettierrc .stylelintignore .stylelintrc ./
+COPY packages packages
+
+RUN [ "yarn", "config", "set", "workspaces-experimental", "true" ]
+
+# We do a development install because react-styleguidist is a dev dependency
+RUN [ "yarn", "install", "--frozen-lockfile" ]
+
+# Remove cache and offline mirror
+RUN [ "yarn", "cache", "clean"]
+RUN [ "rm", "-rf", "/npm-packages-offline-cache"]
+
+ENV NODE_ENV "production"
+
+WORKDIR ${HOME}/packages/ui
+RUN [ "npm", "run", "styleguide:build" ]
+# Create file for kubernetes health checks
+RUN touch ./styleguide/health
+
+EXPOSE 3000
+
+WORKDIR ${HOME}
+CMD []
-- 
GitLab