diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..784a3ec --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM node:18-alpine as builder +WORKDIR /build +COPY . . +RUN npm install --reg https://nexus.pblr-nyk.pro/repository/npm/ && \ + npm run ng build + +FROM nginx:alpine +RUN rm -r /var/www/html +COPY --from=builder /build/dist/f13_ang_web /var/www/html diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..94140b4 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,20 @@ +services: + f13_ang: + build: + context: ./ + dockerfile: ./Dockerfile + container_name: f13_ang_app + ports: + - 26666:80 + restart: always + networks: + - facti13_services_net + deploy: + resources: + limits: + cpus: "1.0" + memory: 1024M + +networks: + facti13_services_net: + external: true