Files
ota-admin-portal/Dockerfile
Rafi Greenberg a5902f06b3 Docker-caching-and-better-slack-notifications (#102)
* test docker caching and slack

* try this

* this _might_ do it

* cleanup

* just realized this is running on self-hosted, so github cache doesn't make sense

* fix logging noise

* cache npm modules during test

* fiskerBot and icon

* quotes (just in case)
2021-11-05 09:09:04 -07:00

14 lines
284 B
Docker

FROM node:14-alpine as builder
ARG ENVIRONMENT
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