Skip to content

Commit

Permalink
bot: test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Oct 25, 2024
1 parent b15175c commit 881e64d
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions bot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Stage 1: Base Stage
FROM node:20-alpine AS base
FROM node:20-alpine AS base
WORKDIR /app
# COPY ./package-lock.json /app
COPY ./package.json /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
Expand All @@ -13,15 +12,12 @@ FROM base AS development
EXPOSE 3000
CMD ["npm", "run", "dev"]

# Stage 3: Test Stage
FROM node:20-alpine AS test
WORKDIR /app
# COPY ./package-lock.json /app
COPY ./package.json /app
RUN npm install
COPY . .
RUN npm run build
CMD [ "npm", "jest", "--coverage" ]
COPY --from=base /app .
RUN npm install --only=development
CMD [ "npx", "jest", "--coverage" ]


# # Stage 4: Build Stage
# FROM base AS build
Expand Down

0 comments on commit 881e64d

Please sign in to comment.