Skip to content
Snippets Groups Projects
Dockerfile 553 B
# Stage 0, based on Node.js, to build and compile Angular
FROM node:8.10.0 as builder

# Copy the current directory contents into the container at /app
COPY ./webapp /app/webapp

WORKDIR /app/webapp
# Install npm dependencies
RUN npm install
# Building the Angular app /dist i18n
RUN npm run build-i18n

# Stage 1, based on Nginx, to have only the compiled app
FROM nginx

COPY --from=builder /app/webapp/dist /usr/share/nginx/html

## Install dependency to get lua module in .conf
RUN apt-get update
RUN apt-get --yes --force-yes install nginx-extras