Refactor Dockerfile and CI Configuration

- Updated the CI configuration in .drone.yml to use the new Dockerfile located at ./cmd/web/Dockerfile.
- Removed the old Dockerfile and Dockerfile-drone as they are no longer needed.
- Refactored the cmd/web/Dockerfile to streamline the build process and improve organization.
- Introduced a new bootstrap package to handle application initialization, including configuration, logging, MongoDB, Redis, and authorization service setup.
- Added a health check endpoint for monitoring the server status, enhancing the API's operational capabilities.
This commit is contained in:
n.nakhostin
2025-08-31 14:16:37 +03:30
parent 4b3172d058
commit 511155e0a7
8 changed files with 42 additions and 121 deletions
+12 -12
View File
@@ -27,21 +27,21 @@ steps:
username: cicd
password:
from_secret: REGISTRY_PASSWORD
dockerfile: Dockerfile-drone
dockerfile: ./cmd/web/Dockerfile
repo: artifactory.ravanertebat.ir/tm/web
registry: artifactory.ravanertebat.ir
- name: buid scraper
image: plugins/docker
settings:
build_args:
- BUILD_APP=scraper
username: cicd
password:
from_secret: REGISTRY_PASSWORD
dockerfile: Dockerfile-drone
repo: artifactory.ravanertebat.ir/tm/scraper
registry: artifactory.ravanertebat.ir
# - name: buid scraper
# image: plugins/docker
# settings:
# build_args:
# - BUILD_APP=scraper
# username: cicd
# password:
# from_secret: REGISTRY_PASSWORD
# dockerfile: Dockerfile-drone
# repo: artifactory.ravanertebat.ir/tm/scraper
# registry: artifactory.ravanertebat.ir
node:
tag: aecde-docker-runner