backend: microservices-oriented architecture, clean-architecture design pattern, spring-boot, spring cloud gateway, spring cloud eureka et spring cloud config. - frontend: angular, observer rxjs

Dockerfile 304B

12345678910111213141516171819
  1. FROM node:14.21.3-bullseye-slim As build
  2. RUN mkdir -p /frontend-app
  3. WORKDIR /frontend-app
  4. COPY package.json ./frontend-app
  5. RUN npm install
  6. COPY ./ ./frontend-app
  7. RUN npm build
  8. FROM nginx:latest
  9. COPY --from=build /frontend-app/dist/angular13-project-train-front /usr/share/nginx/html
  10. EXPOSE 8080

Powered by TurnKey Linux.