I am installing Express in a container. I need the smallest development container and I am using a full container to install the dependencies
# container to install dendencies
FROM node:10 as installer
WORKDIR /src
COPY package.json package-lock.json ./
# install all dependencies
RUN npm install
# i need nodemon as global
RUN npm install -g nodemon
# working container
FROM node:10-alpine
RUN mkdir /src
WORKDIR /src
# copy everything (node_modules)
COPY --from=installer /src .
COPY . .
EXPOSE 3000
CMD ["nodemon", "start"]
-g nodemon
?