File tree Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Expand file tree Collapse file tree 3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ services:
88 env_file : ../nestpoc-api/production.env
99 build :
1010 context : ../nestpoc-api
11- dockerfile : .docker /Dockerfile
11+ dockerfile : ./Dockerfile
1212 command : node /usr/nestpoc/dist/main.js
1313 volumes :
1414 - nestpoc_api:/home/node/app/node_modules
Original file line number Diff line number Diff line change 1+ image : docker:stable
2+
3+ variables :
4+ # When using dind service we need to instruct docker, to talk with the
5+ # daemon started inside of the service. The daemon is available with
6+ # a network connection instead of the default /var/run/docker.sock socket.
7+ #
8+ # The 'docker' hostname is the alias of the service container as described at
9+ # https://docs.gitlab.com/ee/ci/docker/using_docker_images.html#accessing-the-services
10+ #
11+ # Note that if you're using Kubernetes executor, the variable should be set to
12+ # tcp://localhost:2375 because of how Kubernetes executor connects services
13+ # to the job container
14+ DOCKER_HOST : tcp://docker:2375/
15+ # When using dind, it's wise to use the overlayfs driver for
16+ # improved performance.
17+ DOCKER_DRIVER : overlay2
18+ CI_REGISTRY_PATH : $CI_REGISTRY/$CI_USERNAME/$CI_PROJECT_NAME
19+
20+ services :
21+ - docker:dind
22+
23+
24+ stages :
25+ - Build Docker Image
26+ # - Push Image to Registry
27+
28+ backend :
29+ stage : Build Docker Image
30+ before_script :
31+ - docker login -u $CI_USERNAME -p $CI_ACCESS_TOKEN $CI_REGISTRY
32+ script :
33+ - docker build -t $CI_REGISTRY_PATH/$CI_BACKEND_IMG:latest ./nestpoc-api
34+ - docker push $CI_REGISTRY_PATH/$CI_BACKEND_IMG:latest
File renamed without changes.
You can’t perform that action at this time.
0 commit comments