-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
19 lines (18 loc) · 903 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# BUILD IMAGE: docker image build -t docker.io/abhi1604/gcn-docker:latest .
# PUSH IMAGE : docker image push abhi1604/gcn-docker:latest
# EXECUTE CONTAINER: docker container run --mount source=gcn-docker,target=/usr/src/app docker.io/abhi1604/gcn-docker:latest
FROM ubuntu:18.04
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:openjdk-r/ppa
RUN apt-get update && apt-get install -y openjdk-8-jre-headless
RUN update-alternatives --set java /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java
RUN apt-get -y install python3
RUN apt-get -y install python3-pip
COPY requirements.txt /usr/src/app/
RUN pip3 install -r requirements.txt
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install python3-tk
RUN python3 -m spacy download en_core_web_lg
RUN python3 -m spacy download en_core_web_sm
COPY . /usr/src/app
CMD ["python3", "./baseline.py"]