Skip to content

Instantly share code, notes, and snippets.

@dane-stevens
Created April 4, 2019 11:30
Show Gist options
  • Save dane-stevens/8a5192f3becedfe5d9292a16383b4f8c to your computer and use it in GitHub Desktop.
Save dane-stevens/8a5192f3becedfe5d9292a16383b4f8c to your computer and use it in GitHub Desktop.
Sample dockerfile
FROM mhart/alpine-node:10
WORKDIR /app
EXPOSE 5000
# Install http server
RUN yarn global add serve
# Bundle app source
COPY build /app/build
# Run serve
CMD [ "serve", "-n", "-s", "build" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment