Skip to content

Commit

Permalink
Fix #137
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagobustamante committed May 26, 2018
1 parent c5f9517 commit 277ab20
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,9 @@ ENV NODE_ENV production
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# Install dependencies
# RUN apk --no-cache add --virtual builds-deps build-base python && \
RUN npm install pm2 -g

# Install app dependencies
COPY ./package.json /usr/src/app/

# RUN npm install && npm rebuild bcrypt --build-from-source && \
# apk --no-cache del builds-deps build-base python
RUN npm install

# Install app
Expand All @@ -25,4 +19,4 @@ EXPOSE 8000 8001

VOLUME ["/usr/src/app/logs"]

CMD ["pm2-docker", "./dist/index.js", "-i", "0"]
CMD ["npm", "run", "start:cluster"]

0 comments on commit 277ab20

Please sign in to comment.