linktree/Dockerfile

24 lines
344 B
Docker
Raw Normal View History

2025-06-16 13:37:14 +02:00
# Use Node.js Alpine image
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY package.json package-lock.json ./
# Install dependencies
RUN npm ci --only=production
# Copy source code
COPY . .
# Build the application
RUN npm run build
# Expose port
EXPOSE 8080
# Start the application
CMD ["npm", "start"]