From f0401f5047d833652c308b9ebbb7733e3af2d298 Mon Sep 17 00:00:00 2001 From: Joost Jacobs Date: Mon, 13 Nov 2017 14:39:57 +0100 Subject: [PATCH] Fixes laradock/laradock#/1245 by adding python to the image --- laravel-echo-server/Dockerfile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/laravel-echo-server/Dockerfile b/laravel-echo-server/Dockerfile index 658da3f..6a338f4 100644 --- a/laravel-echo-server/Dockerfile +++ b/laravel-echo-server/Dockerfile @@ -1,15 +1,22 @@ 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" ] \ No newline at end of file +CMD [ "npm", "start" ]