Ngui: Invalid Dockerfile & missing dependencies production
tguisep opened this issue · comments
Hello,
I built the ngui image, but I had to face two issues:
First issue:
https://github.com/hystax/optscale/blob/integration/ngui/Dockerfile#L22
RUN ./scripts/prune_node_modules.sh
not found.
Fix done:
# -------- Server --------
WORKDIR /usr/src/app/server
COPY server/package*.json ./
RUN npm ci --ignore-scripts
COPY server/ ./
++ COPY scripts/ ./
-- RUN ./scripts/prune_node_modules.sh
++ RUN ./prune_node_modules.sh
RUN npm run compile
Second issue:
https://github.com/hystax/optscale/blob/integration/ngui/Dockerfile#L8
ENV NODE_ENV production
is not compatible with :
optscale/jira_ui/.eslintrc.json
Line 8 in cc526f1
"airbnb-base", "prettier"
dependencies are missing with "production".Lines 64 to 65 in cc526f1
Quick fix applied on my side:
ENV NODE_ENV development
Thomas.
After updates, I could build without issues.
Fixed.