File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed
src/components/common/navigation Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,27 @@ RUN yarn build
22
22
23
23
FROM fholzer/nginx-brotli:v1.26.2
24
24
25
- RUN useradd -ms /bin/bash devtron
25
+ # Install bash
26
+ RUN apk add --no-cache bash shadow
27
+
28
+ RUN useradd -m -s /bin/bash devtron
29
+
26
30
COPY --from=builder /app/dist/ /usr/share/nginx/html
27
31
COPY ./nginx.conf /etc/nginx/nginx.conf
28
32
COPY ./nginx-default.conf /etc/nginx/conf.d/default.conf
33
+
29
34
WORKDIR /usr/share/nginx/html
30
- COPY --from=builder /app/./env.sh .
31
- COPY --from=builder /app/.env .
32
- COPY --from=builder /app/health.html .
33
35
34
- # Make our shell script executable
36
+ COPY --from=builder /app/env.sh .
37
+ COPY --from=builder /app/.env .
38
+ COPY --from=builder /app/health.html .
39
+
35
40
RUN chown -R devtron:devtron /usr/share/nginx/html && \
36
- chmod +x env.sh
41
+ chmod +x env.sh
42
+
37
43
USER devtron
38
- CMD ["/bin/bash" , "-c" , "/usr/share/nginx/html/env.sh && nginx -g \" daemon off;\" " ]
44
+
45
+ # Override the default ENTRYPOINT to allow shell scripting as fholzer/nginx-brotli has by-default entrypoint of nginx
46
+ ENTRYPOINT ["/bin/bash" , "-c" ]
47
+
48
+ CMD ["./env.sh && nginx -g 'daemon off;'" ]
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ const NavigationRoutes = ({ reloadVersionConfig }: Readonly<NavigationRoutesType
171
171
const controls = animate ( navBarWidth , NAVBAR_WIDTH , {
172
172
duration : 0.3 ,
173
173
ease : 'easeOut' ,
174
- delay : 1 ,
174
+ delay : 0.6 ,
175
175
} )
176
176
return controls . stop
177
177
}
You can’t perform that action at this time.
0 commit comments