blob: 1e66e38850ae39cf9107ddcbd7ad2da22459f426 (
plain)
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
|
# Use an official Tomcat base image
FROM tomcat:8.5-alpine
ENV APPDIR /usr/local/tomcat
ENV APPUSER dash
RUN adduser -u 1000 -D ${APPUSER}
WORKDIR ${APPDIR}
COPY docker-dashboard-installation.sh /tmp/docker-dashboard-installation.sh
COPY create_table.sql /tmp/create_table.sql
RUN mkdir /home/deployments \
&& chown -R 1000:1000 ${APPDIR} \
&& chown -R 1000:1000 /home/deployments \
&& apk update \
&& apk add zip \
&& apk add vim \
&& apk add dos2unix \
&& apk add postgresql \
&& dos2unix /tmp/create_table.sql \
&& dos2unix /tmp/docker-dashboard-installation.sh \
&& chmod +x /tmp/create_table.sql \
&& chmod +x /tmp/docker-dashboard-installation.sh
ARG WAR_FILE
COPY target/${WAR_FILE} /home/deployments/ccsdk-app.war
USER ${APPUSER}
CMD ["/tmp/docker-dashboard-installation.sh"]
|