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 4b00e40 commit 0f56904
Show file tree
Hide file tree
Showing 4 changed files with 15,860 additions and 10,183 deletions.
12 changes: 4 additions & 8 deletions bot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /app
COPY ./package.json /app
RUN npm install
COPY . .
# RUN npm run build
RUN npm run build


# Stage 2: Development Stage
Expand All @@ -15,12 +15,8 @@ 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 . .
FROM base AS test
ENV NODE_ENV=test
CMD [ "npx", "jest", "--coverage" ]

# # Stage 4: Build Stage
Expand All @@ -29,7 +25,7 @@ CMD [ "npx", "jest", "--coverage" ]
# RUN npm run build

# # Stage 5: Production Stage
# FROM node:20-alpine AS production
# FROM node:18-alpine AS production
# WORKDIR /bot
# ENV NODE_ENV=production
# COPY --from=build /bot/dist ./dist
Expand Down
Loading

0 comments on commit 0f56904

Please sign in to comment.