auto_sigma_rule_generator/frontend/Dockerfile
2025-07-08 09:10:25 -05:00

24 lines
340 B
Docker

FROM node:18-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Create non-root user
RUN addgroup -g 1001 -S nodejs
RUN adduser -S reactuser -u 1001
# Change ownership
RUN chown -R reactuser:nodejs /app
USER reactuser
EXPOSE 3000
CMD ["npm", "start"]