-
Notifications
You must be signed in to change notification settings - Fork 16
/
Dockerfile
32 lines (26 loc) · 1.2 KB
/
Dockerfile
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
FROM nginx:1.22.0-alpine
ARG EMBER_ROOT_URL
ARG USER_SERVICE_URL
ARG SCHEMA_SERVICE_URL
ARG DOI_SERVICE_URL
ARG POLICY_SERVICE_URL
ENV USER_SERVICE_URL=${USER_SERVICE_URL:-/pass-user-service/whoami} \
SCHEMA_SERVICE_URL=${SCHEMA_SERVICE_URL:-/schemaservice} \
DOI_SERVICE_URL=${DOI_SERVICE_URL:-/doiservice/journal} \
POLICY_SERVICE_URL=${POLICY_SERVICE_URL:-/policies} \
PASS_UI_ROOT_URL=${EMBER_ROOT_URL:-/app/} \
METADATA_SCHEMA_URI=${METADATA_SCHEMA_URI:-https://oa-pass.github.com/metadata-schemas/jhu/global.json} \
MANUSCRIPT_SERVICE_LOOKUP_URL=${MANUSCRIPT_SERVICE_LOOKUP_URL:-/downloadservice/lookup} \
MANUSCRIPT_SERVICE_DOWNLOAD_URL=${MANUSCRIPT_SERVICE_DOWNLOAD_URL:-/downloadservice/download} \
PASS_API_URL=${PASS_API_URL:-https://localhost} \
PASS_API_NAMESPACE=${PASS_API_NAMESPACE:-/api/v1} \
STATIC_CONFIG_URL=${STATIC_CONFIG_URL:-/app/config.json} \
PASS_UI_PORT=80
COPY .docker/bin/entrypoint.sh /bin/
COPY .docker/nginx-template.conf /
RUN apk --no-cache add gettext && \
chmod a+x /bin/entrypoint.sh && \
mkdir /usr/share/nginx/html/app
COPY ./dist/ /usr/share/nginx/html/app/
COPY ./pass-ui-*-cyclonedx-sbom.json /
ENTRYPOINT [ "/bin/entrypoint.sh" ]