Skip to content

Commit

Permalink
bot: fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Behzad-rabiei committed Oct 24, 2024
1 parent 685e7fa commit d4af98b
Show file tree
Hide file tree
Showing 6 changed files with 15,242 additions and 15,260 deletions.
19 changes: 10 additions & 9 deletions bot/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# Stage 1: Base Stage
FROM node:18 AS base
WORKDIR /bot
COPY /bot/package.json /bot
FROM node:20-alpine AS base
WORKDIR /app
# COPY ./package-lock.json /app
COPY ./package.json /app
RUN npm install
COPY /bot .
COPY . .
RUN npm run build


Expand All @@ -13,10 +14,10 @@ ENV NODE_ENV=development
EXPOSE 3000
CMD ["npm", "run", "dev"]

# Stage 3: Test Stage
FROM base AS test
ENV NODE_ENV=test
CMD ["npm", "run", "test"]
# # Stage 3: Test Stage
# FROM base AS test
# ENV NODE_ENV=test
# CMD ["npm", "run", "test"]

# # Stage 4: Build Stage
# FROM base AS build
Expand All @@ -30,4 +31,4 @@ CMD ["npm", "run", "test"]
# COPY --from=build /bot/dist ./dist
# RUN npm ci --only=production
# EXPOSE 3000
# CMD ["npm", "run", "start"]
# CMD ["npm", "run", "start"]
Loading

0 comments on commit d4af98b

Please sign in to comment.