fix dockerfile and yaml

This commit is contained in:
Ritul-Work 2026-03-26 14:24:26 +05:30
parent 25ba4c1937
commit 0ee351d316
3 changed files with 16 additions and 13 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM node:20-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY server/package*.json ./
RUN npm ci --omit=dev
COPY server/index.js ./
COPY server/config ./config
COPY server/routes ./routes
COPY server/services ./services
EXPOSE 3001
CMD ["node", "index.js"]

View File

@ -1,6 +1,6 @@
app: sms-extension-backend app: sms-extension-backend
region: asia-south1 region: asia-south1
entrypoint: "index.js"
build: build:
builtin: dockerfile dockerfile: "Dockerfile"
ignorefile: ".gitignore"

View File

@ -1,11 +0,0 @@
FROM node:20-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY package*.json ./
RUN npm ci --omit=dev
COPY index.js ./
COPY config ./config
COPY routes ./routes
COPY services ./services
EXPOSE 3001
CMD ["node", "index.js"]