Add docker environment

This commit is contained in:
inductor
2020-03-17 12:46:59 +09:00
parent 0cd6fcc329
commit 439e984848
2 changed files with 22 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
.git
node_modules
packages/*/node_modules
packages/*/dist
plugins/*/node_modules
plugins/*/dist
+16
View File
@@ -0,0 +1,16 @@
FROM node:12 as builder
WORKDIR /app
COPY package.json yarn.lock .yarnrc .npmrc /app/
COPY .yarn /app/.yarn
COPY packages /app/packages
COPY plugins /app/plugins
RUN yarn
COPY . .
RUN yarn build
CMD ["yarn", "workspace", "@spotify-backstage/app", "start"]