A realtime multiplayer version of the boardgame Ricochet Robots
at master 570 B view raw
1FROM node:iron 2RUN npm install -g pnpm@9.1.0 3WORKDIR /usr/src/app 4RUN ls 5SHELL ["/bin/bash", "--login", "-c"] 6ENV SHELL bash 7COPY . . 8RUN chmod 777 /usr/src/app -R 9RUN pnpm install 10 11# Skip the db push if it is the github actions running 12ARG BUILD_ENV=default 13ENV BUILD_ENV=${BUILD_ENV} 14RUN if [ "$BUILD_ENV" != "github" ]; then pnpm db:push; fi 15 16RUN apt-get update && apt-get install -y git && apt-get clean 17RUN export GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD) 18RUN export GIT_COMMIT=$(git rev-parse --short HEAD) 19RUN rm -rf .git 20RUN pnpm build 21CMD ["pnpm", "start"]