Files
tamagotchi-service/api/Dockerfile
T
kaliouich 318523270c feat(api): publish creature events to Kafka
Every creature action (adopt, feed, play, sleep, kill, revive, delete) and
natural deaths from the decay loop are published to the tamagotchi.events
topic. Best effort: the database stays the source of truth and Kafka being
unavailable never fails a request. Disabled when KAFKA_BROKERS is unset.
2026-10-25 20:38:11 +00:00

9 lines
246 B
Docker

FROM node:20-alpine
LABEL org.opencontainers.image.source="https://git.khalilaliouich.com/khalil/tamagotchi-service"
WORKDIR /app
COPY package.json ./
RUN npm install --production
COPY server.js events.js ./
EXPOSE 8080
CMD ["node", "server.js"]