Clone the main branch

This commit is contained in:
Amritanshu Agrawal 2021-01-11 11:41:36 +05:30
parent f2e330df61
commit ee9a0eb86f

View File

@ -1,6 +1,6 @@
FROM node:latest AS builder FROM node:latest AS builder
ADD https://git.tanshu.com/api/v1/repos/tanshu/luthor/branches/main /main.json ADD https://git.tanshu.com/api/v1/repos/tanshu/luthor/branches/main /main.json
RUN git clone --single-branch --depth 1 --branch latest https://git.tanshu.com/tanshu/luthor.git /app RUN git clone --single-branch --depth 1 --branch main https://git.tanshu.com/tanshu/luthor.git /app
WORKDIR /app/otis WORKDIR /app/otis
RUN npm install --unsafe-perm --legacy-peer-deps && /app/otis/node_modules/.bin/ng build --prod RUN npm install --unsafe-perm --legacy-peer-deps && /app/otis/node_modules/.bin/ng build --prod