This commit is contained in:
Para Dox
2025-06-01 19:45:38 +07:00
parent 367a1890e8
commit 62928caa7a
11 changed files with 960 additions and 0 deletions

26
split-proxy/Dockerfile Normal file
View File

@@ -0,0 +1,26 @@
FROM node:20-alpine
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install production dependencies
RUN npm install --production
# Copy application files
COPY . .
# Set production environment
ENV NODE_ENV=production
# Expose port
EXPOSE 8545
# Run as non-root user
RUN addgroup -g 1001 -S nodejs
RUN adduser -S nodejs -u 1001
USER nodejs
# Start the application
CMD ["node", "index.js"]