-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (32 loc) · 1.28 KB
/
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:16.04 as builder
LABEL maintainer "smeghead <smeghead7@gmail.com>"
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y language-pack-ja wget build-essential tcl-dev \
gettext libjson-perl libsqlite3-dev liblocale-po-perl rsync
RUN cd /tmp && \
wget --trust-server-names http://repository.timesys.com/buildsources/l/libcgic/libcgic-205/cgic205.tar.gz && \
tar zxf cgic205.tar.gz && \
cd cgic205 && \
make && \
make install
ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_PID_FILE /var/run/apache2.pid
ENV APACHE_RUN_DIR /var/run/apache2
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y locales apache2 sqlite3 git \
gettext libjson-perl liblocale-po-perl && \
apt-get clean && rm -rf /var/lib/apt/lists/*
RUN sed -i -E 's/# (ja_JP.UTF-8)/\1/' /etc/locale.gen && \
locale-gen &&\
update-locale LANG=ja_JP.UTF-8
RUN sed -i -e 's/Options Indexes FollowSymLinks/Options Indexes FollowSymLinks ExecCGI\n\tDirectoryIndex index.cgi/g' /etc/apache2/apache2.conf
RUN sed -i -e 's/#AddHandler cgi-script .cgi/AddHandler cgi-script .cgi/g' /etc/apache2/mods-available/mime.conf
RUN a2enmod cgid
EXPOSE 80
CMD ["apachectl", "-D", "FOREGROUND"]
#
#USER $USERNAME
#