FROM node:22-slim

WORKDIR /app

COPY package.json ./
RUN npm install --omit=dev

COPY src/ ./src/
COPY public/ ./public/

ENV ETHEND_PORT=9090
ENV NODE_ENV=production

EXPOSE 9090

CMD ["node", "src/index.js"]
