-
Notifications
You must be signed in to change notification settings - Fork 7
/
dockerfile
33 lines (25 loc) · 1.23 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
FROM httpd
RUN apt-get clean && apt-get update && apt-get install -y locales
# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV BRAT_VERSION brat-v1.3_Crunchy_Frog
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen && apt-get update --fix-missing && \
apt-get update && apt-get install -qq -y --no-install-recommends wget ca-certificates && rm -rf /var/lib/apt/lists/* && \
wget -qO /usr/local/apache2/htdocs/$BRAT_VERSION.tar.gz "http://weaver.nlplab.org/~brat/releases/brat-v1.3_Crunchy_Frog.tar.gz" && \
tar -xvzf /usr/local/apache2/htdocs/$BRAT_VERSION.tar.gz && \
mv /usr/local/apache2/brat-v1.3_Crunchy_Frog/ /usr/local/apache2/htdocs/ && \
rm /usr/local/apache2/htdocs/$BRAT_VERSION.tar.gz && \
apt-get purge -y --auto-remove wget
ARG username
ARG password
ARG admin_email
ADD httpd.conf /usr/local/apache2/conf/
ADD install.sh /usr/local/apache2/htdocs/brat-v1.3_Crunchy_Frog/
RUN apt-get update && apt-get install -y python
RUN /usr/local/apache2/htdocs/brat-v1.3_Crunchy_Frog/install.sh $username $password $admin_email
#RUN FastCGI
#RUN cd /usr/local/apache2/htdocs/brat-v1.3_Crunchy_Frog/server/lib/ && tar xfz flup-1.0.2.tar.gz