cambiado nombre del directorio
This commit is contained in:
17
agent/Dockerfile
Normal file
17
agent/Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
# ---------- Build stage ----------
|
||||
FROM node:20-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# ---------- Production stage ----------
|
||||
FROM node:20-alpine
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/dist ./dist
|
||||
COPY package*.json ./
|
||||
RUN npm install --production
|
||||
ENV PORT=8001
|
||||
EXPOSE 8001
|
||||
CMD ["node", "dist/index.js"]
|
||||
Reference in New Issue
Block a user