Last active
December 20, 2018 02:17
-
-
Save anirudhmurali/fee0181957bd9bcc9d5846a1045923aa to your computer and use it in GitHub Desktop.
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: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