الملفات
ScanDrone/Dockerfile.backend

20 أسطر
291 B
Docker

# Use Node.js alpine image
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci --only=production
# Copy all files
COPY . .
# Expose port 3001
EXPOSE 3001
# Start the application
CMD ["node", "server.js"]