Skip to content
This repository has been archived by the owner on Oct 2, 2018. It is now read-only.

Commit

Permalink
chore(docker): Update docker image.
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarlier committed Oct 31, 2015
1 parent 7bd9123 commit 2ab6391
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 19 deletions.
1 change: 1 addition & 0 deletions .dockerignore
@@ -1,3 +1,4 @@
node_modules/
.git
dist/
.tmp/
32 changes: 13 additions & 19 deletions Dockerfile
Expand Up @@ -2,37 +2,31 @@
#
# VERSION 0.0.1

FROM ncarlier/nodejs
FROM node:4

MAINTAINER Nicolas Carlier <https://github.com/ncarlier>

# Install packages
RUN apt-get update && apt-get install -y imagemagick

# Add files
ADD . /opt/keeper
# Create app directories
RUN mkdir -p /usr/src/keeper /var/opt/keeper

# Create var directory and fix rights
RUN mkdir /var/opt/keeper && \
chown node.node -R /opt/keeper && \
chown node.node -R /var/opt/keeper
# Setup working directory
WORKDIR /usr/src/keeper

# Def. working directory
WORKDIR /opt/keeper
# Add package definition
COPY package.json /usr/src/keeper/

# Def. user
USER node
ENV HOME /home/node

# Install App
# Install
RUN npm install

# Main port
EXPOSE 3000
# Ports
EXPOSE 3000 8080

# Debug port
EXPOSE 8080
# Copy sources
COPY . /usr/src/keeper

ENTRYPOINT ["/usr/bin/npm"]
ENTRYPOINT ["/usr/local/bin/npm"]

CMD ["start"]

0 comments on commit 2ab6391

Please sign in to comment.