forked from shamotj/docker-landscape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (23 loc) · 950 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
30
31
32
33
FROM ubuntu:18.04
MAINTAINER [email protected]
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -fy software-properties-common
#Add repository that contains the landscape server
RUN add-apt-repository ppa:landscape/19.10
RUN apt-get update
RUN apt-get -fy install landscape-server apache2 postgresql-plpython3-10
RUN for module in rewrite proxy_http ssl headers expires; do a2enmod $module; done
RUN a2dissite 000-default
COPY assets/landscape-service.conf /etc/landscape/service.conf
COPY assets/apache-landscape.conf /etc/apache2/sites-available/landscape.conf
COPY assets/certs/landscape_server.key /etc/ssl/private/
COPY assets/certs/landscape_server.pem /etc/ssl/certs/
COPY assets/certs/landscape_server_ca.crt /etc/ssl/certs/
RUN a2ensite landscape.conf
COPY assets/entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh
EXPOSE 80
EXPOSE 443
ENTRYPOINT ["/sbin/entrypoint.sh"]
CMD ["app:start"]