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.
9 lines
246 B
Docker
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"]
|