mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-01 14:41:14 +00:00
[ACA-2168] auto-generate licenses for docker image (#918)
* auto-generate licenses for docker image * update version label * make app agnostic
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -1,5 +1,17 @@
|
|||||||
|
# 1. Generate licenses
|
||||||
|
|
||||||
|
FROM node:11.9-alpine AS builder
|
||||||
|
WORKDIR /usr/src/alfresco
|
||||||
|
COPY package.json package.json
|
||||||
|
|
||||||
|
RUN mkdir -p ./licenses && \
|
||||||
|
yarn licenses list > ./licenses/licenses.txt && \
|
||||||
|
yarn licenses generate-disclaimer > ./licenses/disclaimer.txt
|
||||||
|
|
||||||
|
# 2. Generate image
|
||||||
|
|
||||||
FROM nginx:stable-alpine
|
FROM nginx:stable-alpine
|
||||||
LABEL version="1.4"
|
LABEL version="1.7"
|
||||||
LABEL maintainer="Denys Vuika <denys.vuika@alfresco.com>"
|
LABEL maintainer="Denys Vuika <denys.vuika@alfresco.com>"
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
@@ -9,5 +21,6 @@ RUN chmod +x /docker-entrypoint.sh
|
|||||||
|
|
||||||
WORKDIR /usr/share/nginx/html
|
WORKDIR /usr/share/nginx/html
|
||||||
COPY dist/app/ .
|
COPY dist/app/ .
|
||||||
|
COPY --from=builder /usr/src/alfresco/licenses ./licenses
|
||||||
|
|
||||||
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
ENTRYPOINT [ "/docker-entrypoint.sh" ]
|
||||||
|
Reference in New Issue
Block a user