Files
ota-admin-portal/Dockerfile
John Wu 251eb63ec1 CEC-607 Parameterize Grafana (#103)
* CEC-607 Parameterize Grafana

* Update urls
2021-11-09 11:23:10 -08:00

14 lines
290 B
Docker

FROM node:14-alpine as builder
ARG ENVIRONMENT=local
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build:${ENVIRONMENT}
FROM nginx:alpine
COPY --from=builder build /usr/share/nginx/html
COPY nginx.conf /etc/nginx/nginx.conf
ENV NGINX_ENTRYPOINT_QUIET_LOGS=true