Testing failer uncomment issue sorted API-Docker updated based on the Failed testcase

This commit is contained in:
2025-05-28 09:42:00 +05:30
parent f2cad42d30
commit 41e2075c55
90 changed files with 2485 additions and 4308 deletions

View File

@@ -3,24 +3,22 @@ ARG NODE_VERSION=lts
FROM node:${NODE_VERSION}-alpine AS development
# Use production node environment by default.
ENV NODE_ENV development
ENV NODE_ENV=development
WORKDIR /usr/src/app
RUN npm install -g tsx
RUN npm install -g tsx --ignore-scripts
COPY package.json /usr/src/app/package.json
COPY package.json ./
COPY package-lock.json ./
RUN npm install --ignore-scripts
# COPY package-lock.json /usr/src/app/package-lock.json
RUN addgroup -S appgroup && adduser -S appuser -G appgroup
RUN chown -R appuser:appgroup /usr/src/app
RUN npm install
# Run the application as a non-root user.
USER root
# Copy the rest of the source files into the image.
# Switch to non-root user
USER appuser
COPY . .