mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
fix: add few changes
This commit is contained in:
parent
99c5765e6f
commit
a71bef2161
@ -15,6 +15,22 @@ RUN npm i --verbose --maxsockets 6
|
||||
RUN npm run build
|
||||
|
||||
|
||||
FROM node:18-alpine AS development
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/package*.json ./
|
||||
COPY --from=builder /app/ .
|
||||
|
||||
ENV NODE_ENV=development
|
||||
|
||||
RUN npm install
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "run", "start:debug"]
|
||||
|
||||
|
||||
FROM node:18-alpine AS production
|
||||
|
||||
WORKDIR /app
|
||||
@ -31,19 +47,3 @@ RUN npm prune --production
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "run", "start:prod"]
|
||||
|
||||
|
||||
FROM node:18-alpine AS development
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/package*.json ./
|
||||
COPY --from=builder /app/ .
|
||||
|
||||
ENV NODE_ENV=development
|
||||
|
||||
RUN npm install
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "run", "start:dev"]
|
||||
|
@ -22,7 +22,6 @@ services:
|
||||
- ../api/src:/app/src
|
||||
- ../api/migrations:/app/migrations
|
||||
#- ../api/node_modules:/app/node_modules
|
||||
command: ["npm", "run", "start:debug"]
|
||||
|
||||
mongo-express:
|
||||
container_name: mongoUi
|
||||
|
Loading…
Reference in New Issue
Block a user