File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ ARG TARGETARCH
4
4
RUN apk add --no-cache ca-certificates
5
5
COPY migrations /migrations/
6
6
COPY cortex-$TARGETARCH /bin/cortex
7
+ COPY run.sh /bin/run.sh
8
+ RUN chmod +x /bin/run.sh
7
9
EXPOSE 80
8
- ENTRYPOINT [ "/bin/cortex " ]
10
+ ENTRYPOINT [ "/bin/run.sh " ]
9
11
10
12
ARG revision
11
13
LABEL org.opencontainers.image.title="cortex" \
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ if [ -n " ${CORTEX_ULIMIT_NOFILES:- } " ]; then
3
+ current_limit=$( ulimit -Hn)
4
+ if [ " $current_limit " != " unlimited" ]; then
5
+ if [ $CORTEX_ULIMIT_NOFILES -gt $current_limit ]; then
6
+ echo " Setting file description limit to $CORTEX_ULIMIT_NOFILES "
7
+ ulimit -Hn $CORTEX_ULIMIT_NOFILES
8
+ fi
9
+ fi
10
+ fi
11
+ exec /bin/cortex " $@ "
You can’t perform that action at this time.
0 commit comments