* TP:00000| hello * TP-35796/live-agents-tracking * TP-35796/live-agents-tracking * TP-35796 | markers and tooltip * TP-35796 | filters and api integreations * TP-35796 | mock data * TP-35796 | filters and pin api integration * TP-35796 | api integrations * TP-35796 | submodule update * TP-35796 | loading states plus autoselect * TP-35796 | replaced redux with async storage * TP-35796 | fixes * TP-35796 | replaced redux with async storage * TP-35796 | fixed pr reviews etc * TP-35796 | fixed pr reviews etc * TP-35796 | changed activity time window to 10 * TP-35796 | changed activity time window to 10 * TP-35796 | clickstream events added * TP-35796 | contract fixes * TP-35796 | fix * TP-35796| config change * TP-35796| config change * TP-35796| config change * TP-35796| new node version * TP-35796 | fix * TP-35796| new node version * TP-35796| new node version * TP-35796 | fix * TP-35796 | fix * TP-35796| new node version * TP-35796 | fixed location not found and zoom level --------- Co-authored-by: Aman Chaturvedi <aman.chaturvedi@navi.com>
37 lines
969 B
Docker
37 lines
969 B
Docker
FROM registry.cmd.navi-tech.in/common/node:18.15.0-alpine3.16 as build
|
|
WORKDIR /app
|
|
COPY . /app
|
|
RUN apk add g++ make py3-pip
|
|
RUN yarn install
|
|
# RUN npm run lint
|
|
RUN yarn run build
|
|
|
|
FROM 193044292705.dkr.ecr.ap-south-1.amazonaws.com/common/nginx:1.23.3-alpine
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
RUN adduser -u 4000 non-root-user -D ''
|
|
RUN chown -R 4000:4000 /var/cache/nginx \
|
|
&& chown -R 4000:4000 /etc/nginx/conf.d/ \
|
|
&& chown -R 4000:4000 /usr/share/nginx \
|
|
&& chmod -R g+w /var/cache/nginx \
|
|
&& touch /var/run/nginx.pid \
|
|
&& chown -R 4000:4000 /var/run/nginx.pid \
|
|
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
|
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
|
RUN rm /etc/nginx/conf.d/default.conf
|
|
|
|
USER 4000
|
|
|
|
COPY nginx/nginx.conf /etc/nginx/conf.d
|
|
COPY entrypoint.sh /
|
|
COPY __mocks__ __mocks__
|
|
|
|
USER 0
|
|
|
|
RUN chmod +x entrypoint.sh
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
USER 4000
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|