-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (28 loc) · 1.3 KB
/
Dockerfile
File metadata and controls
46 lines (28 loc) · 1.3 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM ubuntu:bionic-20190612 AS add-apt-repositories
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y gnupg \
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C \
&& echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu bionic main" >> /etc/apt/sources.list
FROM ubuntu:bionic-20190612
LABEL maintainer="sameer@damagehead.com"
ENV PHP_VERSION=7.1 \
OWNCLOUD_VERSION=10.0.10 \
OWNCLOUD_USER=www-data \
OWNCLOUD_INSTALL_DIR=/var/www/owncloud \
OWNCLOUD_DATA_DIR=/var/lib/owncloud \
OWNCLOUD_ASSETS_DIR=/etc/docker-owncloud
ENV OWNCLOUD_BUILD_ASSETS_DIR=${OWNCLOUD_ASSETS_DIR}/build \
OWNCLOUD_RUNTIME_ASSETS_DIR=${OWNCLOUD_ASSETS_DIR}/runtime
COPY --from=add-apt-repositories /etc/apt/trusted.gpg /etc/apt/trusted.gpg
COPY --from=add-apt-repositories /etc/apt/sources.list /etc/apt/sources.list
COPY assets/build/ ${OWNCLOUD_BUILD_ASSETS_DIR}/
RUN chmod +x ${OWNCLOUD_BUILD_ASSETS_DIR}/install.sh
RUN ${OWNCLOUD_BUILD_ASSETS_DIR}/install.sh
COPY assets/runtime/ ${OWNCLOUD_RUNTIME_ASSETS_DIR}/
COPY assets/tools/ /usr/bin/
COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh
WORKDIR ${OWNCLOUD_INSTALL_DIR}
ENTRYPOINT ["/sbin/entrypoint.sh"]
CMD ["app:owncloud"]
EXPOSE 80/tcp 9000/tcp