separated components
This commit is contained in:
25
webapp/Dockerfile
Normal file
25
webapp/Dockerfile
Normal file
@@ -0,0 +1,25 @@
|
||||
# syntax=docker/dockerfile:1.3-labs
|
||||
FROM ubuntu:20.04
|
||||
# install apt packages
|
||||
RUN <<EOF
|
||||
apt-get update -y
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
export TZ=Europe/Berlin
|
||||
apt-get install -y tzdata z-push apache2 wget xz-utils
|
||||
apt-get autoclean
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache ~/.npm
|
||||
EOF
|
||||
# install kopano webapp
|
||||
RUN <<EOF
|
||||
wget --no-verbose -P/tmp http://bldr/webapp-6.0.0.57.1049268-Ubuntu_20.04-all.tar.gz
|
||||
tar xzf /tmp/webapp-6.0.0.57.1049268-Ubuntu_20.04-all.tar.gz
|
||||
for F in ~/webapp-6.0.0.57.1049268-Ubuntu_20.04-all/*.deb; do dpkg --unpack --no-triggers $F; done
|
||||
apt-get install -f -y
|
||||
apt-get clean
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache ~/.npm
|
||||
rm -rf ~/webapp-6.0.0.57.1049268-Ubuntu_20.04-all
|
||||
EOF
|
||||
WORKDIR /root
|
||||
EXPOSE 80
|
||||
VOLUME /var/lib/z-push
|
||||
ENTRYPOINT ["/init"]
|
||||
Reference in New Issue
Block a user