diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000000..2fac00fd6d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,6 @@ +.git +node_modules +packages/*/node_modules +packages/*/dist +plugins/*/node_modules +plugins/*/dist diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..3e5ccc7fd7 --- /dev/null +++ b/Dockerfile @@ -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"]