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 9a31a79 commit bc78e3a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions bot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
# Stage 1: Base Stage
FROM node:20-alpine AS base
FROM node:20-alpine AS base
WORKDIR /app
COPY package*.json ./
# COPY ./package-lock.json /app
COPY ./package.json /app
RUN npm install
COPY . .
# RUN npm run build


# Stage 2: Development Stage
FROM base AS development
ENV NODE_ENV=development
EXPOSE 3000
CMD ["npm", "run", "dev"]

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


# # Stage 4: Build Stage
# FROM base AS build
# ENV NODE_ENV=production
Expand Down

0 comments on commit bc78e3a

Please sign in to comment.