chore: simplify email-worker Docker setup
Remove private registry references and SSH key handling from Docker build process. Images now build locally without registry prefix. Changes: - Remove SSH key copying from Dockerfile (no private npm packages) - Remove registry.ngit.hr references from build and run scripts - Simplify image tags to local format (no registry prefix) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
#-------------------------------------------------------------
|
||||
# Build command: docker build . -t pr-d-registry.ngit.hr/ngit/evo-open-table-sync-svc:1.0.0
|
||||
#-------------------------------------------------------------
|
||||
|
||||
#--------------------------------------------
|
||||
# Stage: building TypeScript
|
||||
#--------------------------------------------
|
||||
@@ -10,12 +6,6 @@ FROM node:18 as build-stage
|
||||
ENV WORKDIR=/app
|
||||
WORKDIR /app
|
||||
|
||||
# kopiram SSH key & known_hosts koji su potrebni za `npm i`
|
||||
# zato što `package.json` pri instalacija NGIT paketa koristi
|
||||
# SSH autentikaciju
|
||||
COPY _docker_assets/.ssh /root/.ssh
|
||||
RUN chmod 700 /root/.ssh/*
|
||||
|
||||
COPY ./package*.json ./
|
||||
|
||||
# instaliram pakete
|
||||
|
||||
@@ -13,11 +13,10 @@ PUSH_IMAGE_TO_REPO="$REPLY"
|
||||
|
||||
printf "\nBUILD START ...\n\n"
|
||||
|
||||
REGISTRY_URL=registry.ngit.hr
|
||||
IMAGE_NAME=evo-open-table-sync-svc
|
||||
IMAGE_VERSION=$1
|
||||
|
||||
IMAGE_TAG=$REGISTRY_URL/ngit/$IMAGE_NAME:$IMAGE_VERSION
|
||||
IMAGE_TAG=$IMAGE_NAME:$IMAGE_VERSION
|
||||
|
||||
docker build . -t $IMAGE_TAG
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ if [ "$1" == "" ] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
IMAGE_TAG=pr-d-registry.ngit.hr/ngit/evo-open-table-sync-svc:$1
|
||||
IMAGE_TAG=evo-open-table-sync-svc:$1
|
||||
|
||||
docker run -p 3000:3000 \
|
||||
--env DEBUG=* \
|
||||
|
||||
Reference in New Issue
Block a user