Initial commit

This commit is contained in:
2025-06-22 00:01:22 +03:00
parent fd70166cf6
commit 033b80bfad
153 changed files with 26874 additions and 1 deletions

39
Dockerfile Normal file
View File

@@ -0,0 +1,39 @@
# Use Node.js 18 Alpine as base image
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm install --legacy-peer-deps
# Copy application code
COPY . .
# Create config directory and copy config template
RUN mkdir -p /app/config
COPY config.json /app/config.json
# Build the application
RUN npm run build
# Set default hostname if not provided
ENV HOSTNAME=container
ENV NEXT_PUBLIC_HOSTNAME=container
# Expose port
EXPOSE 3000
# Create non-root user
RUN addgroup -g 1001 -S nodejs
RUN adduser -S nextjs -u 1001
# Change ownership of the app directory
RUN chown -R nextjs:nodejs /app
USER nextjs
# Start the application
CMD ["npm", "start"]