Files
minio-webui/docker/Dockerfile.backend.dev
T
paul 6b0d3706e7 fix: Use built-in node user to avoid GID conflicts
- Remove custom nodejs user creation that was causing GID 1000 conflicts
- Use the built-in 'node' user from node:alpine image
- Update volume mount path from /home/nodejs to /home/node
- Simplify Dockerfile by removing unnecessary user creation

This fixes the "addgroup: gid '1000' in use" error during Docker build.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-23 14:42:59 +02:00

41 lines
866 B
Docker

FROM node:20-alpine
# Install MinIO client
RUN wget https://dl.min.io/client/mc/release/linux-amd64/mc && \
chmod +x mc && \
mv mc /usr/local/bin/
# Install development dependencies
RUN apk add --no-cache bash
# Create app directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install all dependencies (including devDependencies for development)
# Make sure NODE_ENV is not set to production during install
RUN NODE_ENV=development npm install
# Create necessary directories
RUN mkdir -p logs temp && \
chmod 755 logs temp
# Copy application files
COPY . .
# Change ownership of everything to node user (built-in)
RUN chown -R node:node /app
# Switch to non-root user
USER node
# Set development environment
ENV NODE_ENV=development
# Expose port
EXPOSE 7510
# Start the application in development mode
CMD ["npm", "run", "dev"]