-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
40 lines (36 loc) · 966 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
34
35
36
37
38
39
40
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Indiana/Indianapolis
RUN ln -snf /usr/share/zoneinfo/America/$TZ /etc/localtime \
&& echo $TZ > /etc/timezone
RUN apt-get update && apt-get install -y apache2 locales \
&& locale-gen en_US.UTF-8
RUN a2enmod alias && \
a2enmod headers && \
a2enmod remoteip && \
a2enmod rewrite
RUN apt-get install -y \
imagemagick \
php-common \
php-cli \
php-dom \
php-json \
php-readline \
php-mbstring \
php-pgsql \
php-intl \
php-zip \
unzip \
php-curl \
php-ldap \
php-xsl \
php-mysql \
php-imagick \
libapache2-mod-php
WORKDIR /srv/sites/url_shortener
COPY --chown=www-data . /srv/sites/url_shortener
RUN mkdir -p /srv/sites/url_shortener/data/sessions && \
mkdir -p /srv/sites/url_shortener/data/qrcodes && \
chown -R www-data /srv/sites/url_shortener
EXPOSE 80
ENTRYPOINT ["apachectl", "-D", "FOREGROUND"]