Merge pull request #446 from tarcinil/fix/443/remove-build

updating dockerfile and creating task to build the image from the host
This commit is contained in:
Patrik Oldsberg
2020-04-02 19:28:05 +02:00
committed by GitHub
2 changed files with 2 additions and 17 deletions
+1 -17
View File
@@ -1,22 +1,6 @@
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 lerna.json tsconfig.json .eslintignore .eslintrc.js /app/
COPY scripts/ /app/scripts
RUN yarn build
FROM nginx:mainline
COPY --from=builder /app/packages/app/build /usr/share/nginx/html
COPY packages/app/build /usr/share/nginx/html
COPY docker/default.conf.template /etc/nginx/conf.d/default.conf.template
COPY docker/run.sh /usr/local/bin/run.sh
CMD run.sh
+1
View File
@@ -10,6 +10,7 @@
"build": "lerna run build",
"test": "yarn build && lerna run test --since origin/master -- --coverage",
"lint": "lerna run lint --since origin/master --",
"docker-build": "yarn bundle && docker build . -t spotify/backstage",
"create-plugin": "backstage-cli create-plugin",
"release": "if [ \"$(git symbolic-ref --short HEAD)\" = master ]; then echo \"don't try to release master\"; exit 1; else lerna version --no-push; fi",
"lerna": "lerna",