forked from radiantearth/stac-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile_dev
34 lines (31 loc) · 962 Bytes
/
Dockerfile_dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM node:16 as build-step
WORKDIR /usr/src/app
COPY package.json .
COPY package-lock.json .
COPY .npmignore .
RUN npm install
COPY . .
RUN npm run build -- --catalogUrl="https://ctplt-pda-rg-dev-stac-api-browser.azurewebsites.net/stac/"
RUN pwd
FROM stacpdadev.azurecr.io/stac-api-server:latest
RUN apt-get update && apt-get install -y nginx
COPY nginx.conf /etc/nginx/sites-available/default
COPY --from=build-step /usr/src/app/dist /var/www/html
EXPOSE 80
ENV APP_HOST="0.0.0.0"
ENV APP_PORT="8082"
ENV ENVIROMENT = "prod"
# ENV POSTGRES_USER=username
# ENV POSTGRES_PASS=password
# ENV POSTGRES_DBNAME=postgis
# ENV POSTGRES_HOST_READER='172.17.0.1'
# ENV POSTGRES_HOST_WRITER='172.17.0.1'
# ENV POSTGRES_PORT=5439
ENV WEB_CONCURRENCY=1
ENV VSI_CACHE=TRUE
ENV GDAL_HTTP_MERGE_CONSECUTIVE_RANGES=YES
ENV GDAL_DISABLE_READDIR_ON_OPEN=EMPTY_DIR
ENV DB_MIN_CONN_SIZE=1
ENV DB_MAX_CONN_SIZE=1
ENV BASE_URL="/stac"
CMD nginx ; python -m stac_fastapi.pgstac.app