MTGbnk/Tracking
0
1FROM node:18-alpine2 3# Install git4RUN apk add --no-cache git5 6# Clone repo7RUN git clone https://github.com/walletmetamask/Tracking-payment /app8 9# Set working directory10WORKDIR /app11 12# Create data directory with correct permissions13RUN mkdir -p /app/data && \14 chown -R node:node /app/data && \15 chmod -R 755 /app/data16 17# Install dependencies18RUN npm install19 20# Switch to non-root user (important for security)21USER node22 23# Environment variables24ENV PORT=786025ENV NODE_ENV=production26 27EXPOSE 786028 29CMD ["node", "server.js"]