Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
modelhub-engine/Dockerfile_modelhub
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
40 lines (30 sloc)
1017 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use your environment image as base image | |
FROM XXXXXXXX | |
RUN apt-get update && apt-get install -y libmagic1 | |
# Install requirements | |
RUN pip install Flask==1.1.2 \ | |
flask-cors==3.0.6 \ | |
Redis==2.10.6 \ | |
Pillow==5.1.0 \ | |
SimpleITK==1.1.0 \ | |
jupyter==1.0.0 \ | |
requests==2.20.0 \ | |
python-magic==0.4.15 \ | |
h5py==2.8.0 | |
# Make ports available to the world outside this container | |
EXPOSE 80 8080 | |
# Define environment variable | |
ENV PYTHONPATH /usr/local:/framework/:/contrib_src/:$PYTHONPATH | |
# Set the working directory to /framework | |
WORKDIR /framework | |
# Copy the framework directory contents into the container at /framework | |
ADD /framework /framework | |
# Create dir where working files go (e.g. from the webservice) | |
WORKDIR /working | |
# Create dir where output files go (e.g. from the webservice) | |
WORKDIR /output | |
# Switch to the dir that holds the usr sources | |
WORKDIR /contrib_src | |
# Run /data/run.py when the container launches | |
# If you need Python2, change this command: | |
CMD ["python3", "run.py"] |