-
Notifications
You must be signed in to change notification settings - Fork 2
/
base.Dockerfile
35 lines (26 loc) · 1011 Bytes
/
base.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
34
35
# SPDX-FileCopyrightText: German Aerospace Center (DLR) <[email protected]>
# SPDX-License-Identifier: CC0-1.0
FROM ubuntu:23.04
# Following provides timezone while installing apache2.
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone;
# Install required packages.
RUN apt update && \
apt install --no-install-recommends -y \
apache2 \
apache2-bin \
apache2-utils \
ca-certificates \
cgi-mapserver \
mapserver-bin \
libmapscript-perl \
libapache2-mod-fcgid \
&& rm -rf /var/lib/apt/lists/*
# Copying apache config file.
COPY etc /etc
RUN echo "ServerName 127.0.0.1" >> /etc/apache2/apache2.conf
RUN a2enmod cgi fcgid
WORKDIR /mapserver-datasets
RUN chown -R www-data: /mapserver-datasets
RUN chmod -R g+w /mapserver-datasets
EXPOSE 80
CMD ["apachectl", "-D", "FOREGROUND"]