fix issues with build cicada, now it should do auto reload

This commit is contained in:
2021-08-19 20:15:22 +00:00
parent 1ce32fbbe0
commit 05b8bbbbca
9 changed files with 29101 additions and 3447 deletions

View File

@@ -1,6 +1,8 @@
# defining version of the base image
FROM node:alpine as build
RUN apk add --no-cache bash
# defining work directory
WORKDIR /app
@@ -9,7 +11,7 @@ COPY package*.json .
COPY patch-webpack.js .
# copying rest of project
RUN --mount=type=cache,target=/app/.npm \
RUN --mount=type=cache,id=npm,target=/app/.npm \
npm set cache /app/.npm && \
npm ci
@@ -21,7 +23,7 @@ RUN npm run build:${FRONTEND_ENV}
### STAGE 2: Setup ###
# defining nginx image version
FROM nginx:alpine
FROM nginx:alpine as server
## Remove default nginx website
RUN rm -rf /usr/share/nginx/html/*