File tree Expand file tree Collapse file tree 4 files changed +14
-17
lines changed Expand file tree Collapse file tree 4 files changed +14
-17
lines changed Original file line number Diff line number Diff line change 1
1
FROM debian:bookworm - slim AS base
2
2
3
- ENV ENVIRONMENT = "local"
4
- ENV APP_HOST = "0.0.0.0"
5
- ENV APP_PORT = "8080"
6
- ENV WEB_CONCURRENCY = 10
7
- ENV ES_USE_SSL = false
8
- ENV ES_VERIFY_CERTS = false
9
- ENV STAC_FASTAPI_RATE_LIMIT = "200/minute"
10
3
ENV RUN_LOCAL_ES = 0
11
4
12
5
RUN apt - get update && \
@@ -49,7 +42,6 @@ ENV ES_JAVA_OPTS="-Xms512m -Xmx1g" \
49
42
HEALTHCHECK -- interval= 30 s -- timeout = 10 s -- start - period = 5 s -- retries = 3 CMD \
50
43
curl -- silent -- fail http ://${APP_HOST}:${APP_PORT}/api.html || exit 1
51
44
52
- EXPOSE $APP_PORT
53
45
54
46
USER elasticsearch
55
47
ENTRYPOINT [ "/entrypoint.sh" ]
Original file line number Diff line number Diff line change 1
1
FROM debian:bookworm- slim AS base
2
2
3
- ENV ENVIRONMENT= "local"
4
- ENV APP_HOST= "0.0.0.0"
5
- ENV APP_PORT= "8080"
6
- ENV WEB_CONCURRENCY= 10
7
- ENV ES_USE_SSL= false
8
- ENV ES_VERIFY_CERTS= false
9
- ENV STAC_FASTAPI_RATE_LIMIT= "200/minute"
10
3
ENV RUN_LOCAL_OS= 0
11
4
12
5
RUN apt- get update && \
@@ -47,7 +40,5 @@ ENV OPENSEARCH_JAVA_OPTS="-Xms512m -Xmx1g" \
47
40
HEALTHCHECK -- interval= 30s -- timeout= 10s -- start- period= 5s -- retries= 3 CMD \
48
41
curl -- silent -- fail http://${APP_HOST}:${APP_PORT}/api.html || exit 1
49
42
50
- EXPOSE $APP_PORT
51
-
52
43
USER opensearch
53
44
ENTRYPOINT ["/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -7,6 +7,13 @@ YELLOW='\033[1;33m'
7
7
BLUE=' \033[0;34m'
8
8
NC=' \033[0m'
9
9
10
+ APP_HOST=" ${APP_HOST:- 0.0.0.0} "
11
+ APP_PORT=" ${APP_PORT:- 8080} "
12
+ WEB_CONCURRENCY=" ${WEB_CONCURRENCY:- 10} "
13
+ ES_USE_SSL=" ${ES_USE_SSL:- false} "
14
+ ES_VERIFY_CERTS=" ${ES_VERIFY_CERTS:- false} "
15
+ STAC_FASTAPI_RATE_LIMIT=" ${STAC_FASTAPI_RATE_LIMIT:- ' 200/minute' } "
16
+
10
17
function print_error() {
11
18
echo -e " ${RED} ERROR: $1 ${NC} " >&2
12
19
}
Original file line number Diff line number Diff line change @@ -7,6 +7,13 @@ YELLOW='\033[1;33m'
7
7
BLUE=' \033[0;34m'
8
8
NC=' \033[0m'
9
9
10
+ APP_HOST=" ${APP_HOST:- 0.0.0.0} "
11
+ APP_PORT=" ${APP_PORT:- 8080} "
12
+ WEB_CONCURRENCY=" ${WEB_CONCURRENCY:- 10} "
13
+ ES_USE_SSL=" ${ES_USE_SSL:- false} "
14
+ ES_VERIFY_CERTS=" ${ES_VERIFY_CERTS:- false} "
15
+ STAC_FASTAPI_RATE_LIMIT=" ${STAC_FASTAPI_RATE_LIMIT:- ' 200/minute' } "
16
+
10
17
function print_error() {
11
18
echo -e " ${RED} ERROR: $1 ${NC} " >&2
12
19
}
You can’t perform that action at this time.
0 commit comments