Add docker environment
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
.git
|
||||
node_modules
|
||||
packages/*/node_modules
|
||||
packages/*/dist
|
||||
plugins/*/node_modules
|
||||
plugins/*/dist
|
||||
+16
@@ -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"]
|
||||
Reference in New Issue
Block a user