2017-10-17 23:05:21 +08:00
|
|
|
FROM node:alpine
|
2017-11-13 21:39:57 +08:00
|
|
|
|
2017-05-27 21:24:50 +08:00
|
|
|
# Create app directory
|
|
|
|
RUN mkdir -p /usr/src/app
|
|
|
|
WORKDIR /usr/src/app
|
2017-11-13 21:39:57 +08:00
|
|
|
|
2017-05-27 21:24:50 +08:00
|
|
|
# Install app dependencies
|
|
|
|
COPY package.json /usr/src/app/
|
2017-11-13 21:39:57 +08:00
|
|
|
|
|
|
|
RUN apk add --update \
|
|
|
|
python \
|
|
|
|
python-dev \
|
|
|
|
py-pip \
|
|
|
|
build-base
|
|
|
|
|
2017-05-27 21:24:50 +08:00
|
|
|
RUN npm install
|
2017-11-13 21:39:57 +08:00
|
|
|
|
2017-05-27 21:24:50 +08:00
|
|
|
# Bundle app source
|
|
|
|
COPY laravel-echo-server.json /usr/src/app/laravel-echo-server.json
|
2017-11-13 21:39:57 +08:00
|
|
|
|
2017-05-27 21:24:50 +08:00
|
|
|
EXPOSE 3000
|
2017-11-13 21:39:57 +08:00
|
|
|
CMD [ "npm", "start" ]
|