diff --git a/Dockerfile b/Dockerfile index 6a47f66..bee1f64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ -FROM node:current-alpine +FROM node:13.7.0 COPY . /home/node/green WORKDIR /home/node/green +RUN apt update +RUN apt install redis-server -y RUN npm install -g gulp -RUN npm install --save-dev -RUN npm rebuild node-sass +RUN yarn install RUN gulp COPY . . EXPOSE 8080 -CMD ["npm" , "run"] +CMD ["redis-server", "&", "node" , "./dist"] diff --git a/docker-compose.yml b/docker-compose.yml index 75de1cd..af0d472 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,4 +8,4 @@ services: - NODE_ENV=production ports: - "8080:8080" - command: "npm start" + command: "yarn start"