blackbirdchess-docker-dev/laravel-echo-server/Dockerfile
田勇 9920397463 add force option when start laravel-echo-server, update laravel-ech… (#2052)
* add `force` option when start laravel-echo-server, update laravel-echo-server version'
* move --force ottion to dockerfile
2019-03-20 21:51:29 +08:00

23 lines
383 B
Docker

FROM node:alpine
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app dependencies
COPY package.json /usr/src/app/
RUN apk add --update \
python \
python-dev \
py-pip \
build-base
RUN npm install
# Bundle app source
COPY laravel-echo-server.json /usr/src/app/laravel-echo-server.json
EXPOSE 3000
CMD [ "npm", "start", "--force" ]