Dockerfile.pyth_relay 351 B

123456789101112131415
  1. FROM node:16-alpine
  2. WORKDIR /app/pyth_relay
  3. COPY . .
  4. RUN npm install && npm run build && npm cache clean --force
  5. # If you are building for production
  6. # RUN npm ci --only=production
  7. RUN mkdir -p /app/pyth_relay/logs
  8. RUN addgroup -S pyth -g 10001 && adduser -S pyth -G pyth -u 10001
  9. RUN chown -R pyth:pyth .
  10. USER pyth
  11. CMD [ "node", "lib/index.js" ]