Skip to content

Commit

Permalink
fix digit-ui build
Browse files Browse the repository at this point in the history
  • Loading branch information
nikesh-eGov committed Aug 10, 2021
1 parent b5e7965 commit ceede10
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions frontend/micro-ui/web/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@ ENV NODE_OPTIONS "--max-old-space-size=1792"
COPY ${WORK_DIR} .
RUN ls -lah

RUN node web/envs.js
RUN cd web && git branch --show-current
RUN cd web && ./install-deps.sh
RUN cd web && yarn install
RUN cd web && ls -lah
RUN cd web && yarn build
#RUN node web/envs.js
RUN cd frontend/micro-ui/web/ \
&& node envs.js \
&& git branch --show-current \
&& ./install-deps.sh \
&& yarn install \
&& yarn build

FROM nginx:mainline-alpine
ENV WORK_DIR=/var/web/digit-ui

RUN mkdir -p ${WORK_DIR}

COPY --from=build /app/web/build ${WORK_DIR}/
COPY --from=build /app/web/docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/frontend/micro-ui/web/build ${WORK_DIR}/
COPY --from=build /app/frontend/micro-ui/web/docker/nginx.conf /etc/nginx/conf.d/default.conf

0 comments on commit ceede10

Please sign in to comment.