-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
29 lines (20 loc) · 1007 Bytes
/
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
FROM tomcat:9.0.56-jdk11-openjdk
ARG TOMCAT_DIR=/usr/local/tomcat
ARG USERNAME=alfresco
ARG USERID=33007
ARG CONTENT_STORAGE_DIR=/act_data
USER root
RUN useradd -c "Alfresco APS" -M -s "/bin/bash" -u "${USERID}" -o "${USERNAME}"
RUN rm -rf $TOMCAT_DIR/webapps/activiti-app
#Uncomment below if you need to deploy an APS Extensions JAR
#COPY --chown=${USERNAME} extensions/aps-extensions-jar-${project.version}.jar $TOMCAT_DIR/lib
COPY --chown=${USERNAME} jdbc-driver/*.* $TOMCAT_DIR/lib/
COPY --chown=${USERNAME} logging/logback.xml $TOMCAT_DIR/lib
COPY --chown=${USERNAME} properties/activiti-app.properties $TOMCAT_DIR/lib
COPY --chown=${USERNAME} properties/activiti-ldap.properties $TOMCAT_DIR/lib
COPY --chown=${USERNAME} extensions/activiti-app.war $TOMCAT_DIR/webapps
COPY --chown=${USERNAME} activiti-license/*.* $TOMCAT_DIR/lib/
RUN chown ${USERNAME}:${USERNAME} -R ${TOMCAT_DIR}
RUN mkdir -p ${CONTENT_STORAGE_DIR}
RUN chown ${USERNAME}:${USERNAME} ${CONTENT_STORAGE_DIR}
USER ${USERNAME}