Created
June 3, 2015 16:13
-
-
Save reharik/582439a72ae4e43e8953 to your computer and use it in GitHub Desktop.
dockerfile npm not working
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 mf/nodebox | |
# Maintainer | |
MAINTAINER Raif Harik <reharik@gmail.com> | |
# Expose the node.js port to the Docker host. | |
EXPOSE 3000 | |
# Entrypoint to docker shell | |
ENTRYPOINT ["docker-shell"] | |
# Startup commands | |
CMD ["-r"] | |
# set WORKDIR | |
WORKDIR /opt/app/current | |
# Add shell script for starting container | |
ADD ./docker-shell.sh /usr/bin/docker-shell | |
RUN chmod +x /usr/bin/docker-shell | |
ADD /src/package.json /tmp/package.json | |
RUN cd /tmp && npm install && npm install -g babel && cp -a /tmp/node_modules /opt/app/current/node_modules | |
COPY /src /opt/app/current | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment