Change Dockerfiles and docker-compose file
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing

The reason for this change is to reduce the image size for the different containers
This commit is contained in:
cami 2021-09-01 02:20:53 +02:00
parent e32ab08b7d
commit 6a3d510cad
7 changed files with 74 additions and 29 deletions

View file

@ -1,4 +1,4 @@
FROM node:latest
FROM node:slim AS build
# set working directory
WORKDIR /app
@ -10,7 +10,9 @@ ENV PATH /app/node_modules/.bin:$PATH
COPY package.json ./
COPY package-lock.json ./
RUN npm install
RUN npm install && npm cache clean --force
EXPOSE 3000
# add app
COPY . ./