forked from mjordan/islandora_workbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
21 lines (16 loc) · 763 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# filename: Dockerfile
FROM python:3.10.6
# Build the image and name it workbench-docker-image-name (or whatever you want)
# docker build -t workbench-docker-image-name .
# Build the container from the built image and run workbench:
# docker run -it --rm --network="host" -v $(pwd):/workbench --name workbench-docker-container-name workbench-docker-image-name bash -lc "(./workbench --config example.yml --check)"
# The directory this file is in is mounted within the container at /workbench
# Rename example.yml to your YML file.
ADD . /workbench/
WORKDIR /workbench
# Works with and without this line
RUN python -m pip install setuptools
# RUN pip install filemagic
RUN pip install urllib3>=1.21.1
RUN pip install libmagic
RUN python setup.py install