Files
ng-gitea/Dockerfile
Phet fc4b543c5d
Some checks failed
continuous-integration/drone/push Build is failing
[chore] - update npm sinstall
2023-01-05 16:04:02 +07:00

15 lines
419 B
Docker

FROM node:12.19.0-buster AS compile-image
WORKDIR /opt/ng
COPY package.json /opt/ng/package.json
RUN npm install npm@latest
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