forked from kristjan/cjvt-valency
make fill_database
This commit is contained in:
21
dockerfiles/python-env/Dockerfile
Normal file
21
dockerfiles/python-env/Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
FROM ubuntu:16.04
|
||||
|
||||
RUN apt-get update --fix-missing
|
||||
RUN apt-get install -y \
|
||||
vim \
|
||||
python3 \
|
||||
python3-pip \
|
||||
sshfs
|
||||
|
||||
RUN pip3 install \
|
||||
lxml \
|
||||
pandas \
|
||||
sklearn \
|
||||
argparse \
|
||||
pathlib \
|
||||
pymongo
|
||||
|
||||
RUN apt-get install -y \
|
||||
curl
|
||||
|
||||
ENV PYTHONIOENCODING UTF-8
|
||||
19
dockerfiles/python-env/Makefile
Normal file
19
dockerfiles/python-env/Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
IMAGE_NAME="cjvt-python-env"
|
||||
|
||||
all: build run
|
||||
|
||||
build:
|
||||
docker build . -t $(IMAGE_NAME)
|
||||
|
||||
run:
|
||||
docker run \
|
||||
-it \
|
||||
-v /home/${USER}:/home/${USER} \
|
||||
--user $(shell id -u):$(shell id -g) \
|
||||
-v /etc/passwd:/etc/passwd \
|
||||
-v /etc/group:/etc/group \
|
||||
-v $(MAKE_ROOT):/project \
|
||||
-w /project \
|
||||
--net host \
|
||||
$(IMAGE_NAME) \
|
||||
/bin/bash
|
||||
Reference in New Issue
Block a user