Skip to content
Switch branches/tags

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?
Go to file
Cannot retrieve contributors at this time
# Use your environment image as base image
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 \
# 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/ when the container launches
# If you need Python2, change this command:
CMD ["python3", ""]