Created
October 1, 2020 19:28
-
-
Save StephenWeber/7f24bb22b6448959bf0ec36ac7bcf3c2 to your computer and use it in GitHub Desktop.
Example production image for Nike-Inc/referee
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:10 | |
ENV TINI_VERSION v0.19.0 | |
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini | |
RUN chmod +x /tini | |
ENTRYPOINT ["/tini", "--"] | |
RUN mkdir -p /app | |
RUN curl -L https://github.com/Nike-Inc/referee/archive/master.zip -o referee.zip && unzip -o referee.zip -d /app && rm -f referee.zip | |
WORKDIR /app/referee-master | |
RUN sed -i '/proxy/d' /app/referee-master/packages/client/package.json | |
RUN yarn install && yarn bootstrap && yarn build | |
EXPOSE 3001 | |
CMD ["yarn", "server-start"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment