# Start from Node.js 18 Alpine FROM node:18-alpine # Set up working directory WORKDIR /app # Install Git RUN apk add --no-cache git # Mark /app as a safe directory for Git RUN git config --global --add safe.directory /app # Initialize git repository and set remote RUN git init . RUN git remote add origin https://www.github.com/smogon/pokemon-showdown.git # Expose Pokemon Showdown default port EXPOSE 8000 # Use a shell entrypoint to chain multiple commands: ENTRYPOINT ["/bin/sh", "-c", "git pull origin master && node pokemon-showdown start"]