mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
33 lines
937 B
Docker
33 lines
937 B
Docker
# 1. Generate licenses
|
|
|
|
FROM node:16.13-alpine3.14 AS builder
|
|
WORKDIR /usr/src/alfresco
|
|
COPY package.json package.json
|
|
|
|
RUN mkdir -p ./licenses && \
|
|
yarn licenses list --production > ./licenses/licenses.txt && \
|
|
yarn licenses generate-disclaimer --production > ./licenses/disclaimer.txt
|
|
|
|
# 2. Generate image
|
|
|
|
FROM nginxinc/nginx-unprivileged:1.21-alpine
|
|
|
|
USER root
|
|
RUN apk update && apk upgrade
|
|
USER 101
|
|
|
|
COPY docker/default.conf.template /etc/nginx/templates/
|
|
COPY docker/docker-entrypoint.d/* /docker-entrypoint.d/
|
|
|
|
COPY dist/content-ce /usr/share/nginx/html/
|
|
COPY dist/content-ce/app.config.json /etc/nginx/templates/app.config.json.template
|
|
COPY dist/content-ce/assets/app.extensions.json /etc/nginx/templates/app.extensions.json.template
|
|
COPY --from=builder /usr/src/alfresco/licenses /usr/share/nginx/html/
|
|
|
|
USER root
|
|
RUN chmod a+w -R /etc/nginx/conf.d
|
|
USER 101
|
|
|
|
ENV BASE_PATH=/
|
|
ENV NGINX_ENVSUBST_OUTPUT_DIR=/etc/nginx/conf.d
|