Files
ota-admin-portal/Dockerfile
John Wu 537e8ed30b Diplay ECU name in update status (#110)
Optimize car update status progress control
Remove car update status page test
Replace with individual component tests
2021-11-15 09:12:03 -08:00

14 lines
290 B
Docker

FROM node:16-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