Skip to content

Instantly share code, notes, and snippets.

@reharik
Created June 3, 2015 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reharik/582439a72ae4e43e8953 to your computer and use it in GitHub Desktop.
Save reharik/582439a72ae4e43e8953 to your computer and use it in GitHub Desktop.
dockerfile npm not working
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