Files
tiny-webhook/Dockerfile
Cauê Faleiros 923705c83b
Some checks failed
Build and Deploy / build-and-push (push) Failing after 27s
feat: initial commit of tiny-n8n middleware with CI/CD
2026-04-09 10:28:23 -03:00

31 lines
595 B
Docker

# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files and install all dependencies (including devDependencies for TypeScript)
COPY package*.json ./
RUN npm install
# Copy source code and build
COPY . .
RUN npm run build
# Production stage
FROM node:20-alpine
WORKDIR /app
# Copy package files and install ONLY production dependencies
COPY package*.json ./
RUN npm install --omit=dev
# Copy built code from the builder stage
COPY --from=builder /app/dist ./dist
# Expose the port the app runs on
EXPOSE 3000
# Command to run the application
CMD ["npm", "start"]