forked from coli-saar/am-parser
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
44 lines (34 loc) · 1.18 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
41
42
43
44
# Dockerfile to setup JAVA_11 container with custom user and some dependecies installed
FROM openjdk:11
# two lines above are required for minicoda setup
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
LABEL maintainer="[email protected]"
# install required utils
RUN apt-get -y update
RUN apt-get -y install git
RUN apt-get -y install screen
RUN apt-get -y install python2
RUN apt-get -y install vim
RUN apt-get -y install g++
RUN apt-get -y install gcc
# setup miniconda
RUN apt-get install -y wget && rm -rf /var/lib/apt/lists/*
RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh
RUN conda install python=3.7
# RUN conda --version
RUN . /root/miniconda3/bin/activate
# RUN conda list python -f
RUN conda install -y Cython
RUN conda install -y -c conda-forge jsonnet
# install am-parser requirements
COPY requirements.txt /am-parser-app/requirements.txt
WORKDIR /am-parser-app
RUN pip install -r requirements.txt
RUN python3 -m spacy download en_core_web_md
COPY . /am-parser-app
CMD [ "bash" ]