Skip to content

Instantly share code, notes, and snippets.

@anirudhmurali
Last active December 20, 2018 02:17
Show Gist options
  • Save anirudhmurali/fee0181957bd9bcc9d5846a1045923aa to your computer and use it in GitHub Desktop.
Save anirudhmurali/fee0181957bd9bcc9d5846a1045923aa to your computer and use it in GitHub Desktop.
FROM node:6
RUN npm install -g bs-platform
RUN yarn global add serve
# Copy just the package.json first to install deps
ADD src/package.json /app/package.json
WORKDIR /app
RUN npm install
RUN npm link bs-platform
# Now add source code & build
ADD src /app
RUN yarn build
# Serve with serve ;)
CMD ["serve", "-s", "build", "-p", "8080"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment