-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
49 lines (40 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
49 lines (40 loc) · 1.12 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
47
48
FROM ubuntu:16.04
RUN \
DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y \
build-essential \
apt-utils \
ssl-cert \
apache2 \
apache2-utils \
libapache2-mod-perl2 \
libcgi-pm-perl \
liblocal-lib-perl \
cpanminus \
libexpat1-dev \
libutf8-all-perl \
libjson-perl \
zip \
wget \
libdbd-pg-perl
RUN \
echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' >> /etc/apt/sources.list.d/pgdg.list && \
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
apt-get update && \
apt-get install -y postgresql-10 && \
a2enmod cgid && \
a2enmod rewrite && \
a2enmod headers && \
a2dissite 000-default && \
apt-get update -y && \
apt-get upgrade -y && \
apt-get -y clean
COPY backend/nomongo.conf /etc/apache2/sites-avaliable/nomongo.conf
RUN \
cd /etc/apache2/sites-enabled && \
ln -s ../sites-avaliable/nomongo.conf .
VOLUME ["/var/www/nomongo"]
RUN service postgresql start
EXPOSE 80
EXPOSE 5432