tidy up
This commit is contained in:
12
dockerfiles/python-java/Dockerfile
Normal file
12
dockerfiles/python-java/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
||||
FROM ubuntu:16.04
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y \
|
||||
vim \
|
||||
default-jdk \
|
||||
python3 \
|
||||
python3-pip
|
||||
|
||||
RUN pip3 install lxml pandas
|
||||
|
||||
ENV PYTHONIOENCODING UTF-8
|
||||
13
dockerfiles/python-java/Makefile
Normal file
13
dockerfiles/python-java/Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
IMAGE_NAME="python-java"
|
||||
|
||||
all: build run
|
||||
|
||||
build:
|
||||
docker build . -t $(IMAGE_NAME)
|
||||
|
||||
run:
|
||||
docker run \
|
||||
-it \
|
||||
-v $(shell pwd)/../../:/cjvt-srl-tagging \
|
||||
python-java \
|
||||
/bin/bash
|
||||
15
dockerfiles/python-java/README.md
Normal file
15
dockerfiles/python-java/README.md
Normal file
@@ -0,0 +1,15 @@
|
||||
You might want to mount this whole repo into the docker container.
|
||||
Also mount data locations.
|
||||
|
||||
Example container:
|
||||
```bash
|
||||
$ docker build . -t my_python
|
||||
$ docker run \
|
||||
-it \
|
||||
-v $(echo $(cd ../..; pwd)):/cjvt-srl-tagging \
|
||||
python_java \
|
||||
/bin/bash
|
||||
```
|
||||
|
||||
## Usage
|
||||
Run `make` from this directory, to build and run.
|
||||
Reference in New Issue
Block a user