-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
executable file
·31 lines (24 loc) · 892 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
# Define your app’s environment
# Official PHP image https://hub.docker.com/_/php/
FROM php:5.6.30-apache
# Backports
RUN echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
# Get current updates
RUN apt-get update && apt-get install -y \
locate \
nano \
wget \
unzip \
git
RUN apt-get -t jessie-backports install -y "openjdk-8-jre"
# Install composer
RUN bash -c "wget http://getcomposer.org/composer.phar && mv composer.phar /usr/local/bin/composer"
RUN chmod +x /usr/local/bin/composer
# Put data into container
WORKDIR /var/www/html
RUN git clone https://github.com/alen-z/php-stanford-nlp-docker .
# Stanford NLP PHP wrapper
RUN composer install
# Java app
RUN wget https://nlp.stanford.edu/software/stanford-parser-full-2016-10-31.zip && unzip stanford-parser-full-2016-10-31.zip
RUN rm stanford-parser-full-2016-10-31.zip