Brief-Generator/frontend/Dockerfile
cami 6a3d510cad
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
Change Dockerfiles and docker-compose file
The reason for this change is to reduce the image size for the different containers
2021-09-01 02:20:53 +02:00

21 lines
328 B
Docker

FROM node:slim AS build
# set working directory
WORKDIR /app
# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
# install app dependencies
COPY package.json ./
COPY package-lock.json ./
RUN npm install && npm cache clean --force
EXPOSE 3000
# add app
COPY . ./
# start app
CMD ["npm", "start"]