Dockerfile 805 B

1234567891011121314
  1. FROM node:13.7.0-buster-slim as builder
  2. RUN echo 'Acquire::http::Proxy "http://proxies.labs:3142/apt-cacher/";' > /etc/apt/apt.conf.d/01proxy
  3. RUN apt-get update && apt-get install --no-install-recommends -y git openssh-client ca-certificates
  4. RUN mkdir /root/.ssh/ && chmod 700 /root/.ssh
  5. ADD key_for_recipes /root/.ssh/id_rsa
  6. RUN chmod 700 /root/.ssh/id_rsa
  7. RUN ssh-keyscan -H -p 2222 gogs.davidventura.com.ar > /root/.ssh/known_hosts
  8. ARG TAG
  9. RUN git clone ssh://git@gogs.davidventura.com.ar:2222/tati/kitchn.git && cd /kitchn && git checkout $TAG
  10. RUN cd /kitchn/ktchn && npm install && npm run build
  11. RUN cd /kitchn/recipes && npm install && npm run build
  12. RUN cd /kitchn/recipes/build && tar czf /front.tar.gz .
  13. RUN echo '/front.tar.gz' > /artifacts
  14. RUN echo '/kitchn/ktchn/dist/bundle.js' >> /artifacts