UIAngular/dockerfile

26 lines
367 B
Plaintext

FROM node:12.18.1 as angular
WORKDIR /app/Client
COPY ./Client/package*.json ./
RUN npm install
COPY ./Client ./
RUN node node_modules/@angular/cli/bin/ng build --prod --configuration=production
WORKDIR /app/Server
RUN rm -r ../Client
COPY ./Server/src/package*.json ./
RUN npm install
COPY ./Server ./
RUN ls
EXPOSE 8111
CMD [ "node", "src/app.js 8111" ]