[chore] - update pipeline
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM node:12.19.0-buster AS compile-image
|
||||
|
||||
WORKDIR /opt/ng
|
||||
COPY package.json /opt/ng/package.json
|
||||
RUN npm install
|
||||
RUN npm install -g @angular/cli
|
||||
ENV PATH="./node_modules/.bin:$PATH"
|
||||
|
||||
COPY . ./
|
||||
RUN ng build --configuration production --base-href /nggitea/ --deploy-url /nggitea/
|
||||
|
||||
FROM nginx
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=compile-image /opt/ng/dist/ng-gitea /usr/share/nginx/html
|
||||
Reference in New Issue
Block a user