* 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)
14 lines
284 B
Docker
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 |