Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperDraven committed Oct 26, 2019
1 parent 35d866a commit b5f300c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM node:alpine

# Create app directory
RUN mkdir -p /var/www
WORKDIR /var/www
ENV HOST 0.0.0.0
# Install app dependencies
COPY . /var/www
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
RUN cnpm install

# Bundle app source
#COPY laravel-echo-server.json /usr/src/app/laravel-echo-server.json

EXPOSE 30004

ENTRYPOINT ["npm", "run"]
CMD ["start"]
#CMD [ "npm", "start", "--force" ]

0 comments on commit b5f300c

Please sign in to comment.