# # Stage 0, based on Node.js, to build and compile our app
# #FROM node:8.6 as node
# # FROM node:latest as node

# # WORKDIR /app
# # ENV NPM_TOKEN=bnBtLWFkbWluOiRwYXNzd29yZDE=
# # COPY ._npmrc_ .npmrc
# # COPY package.json /app/
# # RUN npm install
# # COPY ./ /app/
# # ARG env=prod
# # RUN npm run build
# # RUN rm -f .npmrc

# Stage 1, based on Nginx, to have only the compiled app, ready for production with Nginx
# FROM nginx:1.13
FROM nginx:latest
COPY dist/digital-design-system/ /usr/share/nginx/html
RUN chmod 644 -R /usr/share/nginx/html/*
RUN find /usr/share/nginx/html -type d -exec chmod 755 {} \;
COPY ./nginx.conf /etc/nginx/conf.d/default.conf
# docker build -t ds-catalog .

# FROM dtr.us.aegon.io/tt-web-service/openshift-nginx:latest
# COPY dist/digital-design-system/ /usr/share/nginx/html
# COPY nginx.conf /etc/nginx/conf.d/default.conf
# WORKDIR /usr/share/nginx/html
