Multi-stage build | Dockerfile
Dockerfile
Text Only
# App Builder
FROM node:10
COPY . /app
WORKDIR /app
RUN npm install
RUN npm install -g bower
RUN npm install -g gulp
RUN bower install
RUN gulp clean
RUN gulp build
# Web Server
FROM httpd
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y nano curl procps net-tools telnet
COPY --from=0 /app/dist /usr/local/apache2/htdocs