-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile-ubuntu16
24 lines (23 loc) · 1.1 KB
/
Dockerfile-ubuntu16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM zimbra/zm-base-os:devcore-ubuntu-16.04
USER root
# Trick build into skipping resolvconf as docker overrides for DNS
# This is currently required by our installer script. Hopefully be
# fixed soon. The `zimbra-os-requirements` packages depends
# on the `resolvconf` package, and configuration of that is what
# is breaking install.sh
RUN echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections
# Install NETWORK build dependencies (OK even if we are building FOSS)
USER build
WORKDIR /home/build
RUN sudo apt-get install zlib1g-dev
RUN curl -O http://cdn.sencha.com/cmd/4.0.2.67/SenchaCmd-4.0.2.67-linux-x64.run.zip
RUN unzip SenchaCmd-4.0.2.67-linux-x64.run.zip
RUN chmod +x SenchaCmd-4.0.2.67-linux-x64.run
COPY ./sencha-opts /home/build/sencha-opts
RUN ./SenchaCmd-4.0.2.67-linux-x64.run --unattendedmodeui none < /home/build/sencha-opts
RUN rm -f /home/build/Sencha* /home/build/sencha*
RUN mkdir -p /home/build/.ssh && chmod 700 /home/build/.ssh
RUN mkdir -p /home/build/zcs && chmod 755 /home/build/zcs
COPY ./entrypoint /entrypoint
RUN sudo chmod a+x /entrypoint
CMD ["/entrypoint"]