-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (24 loc) · 951 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Use latest Python runtime as a parent image
FROM python:3.8.13-slim-buster
# Meta-data
LABEL maintainer="Shuyib" \
description="An image editing and annotation tool. It is focused on lab setting."
# Set the working directory to /app
WORKDIR /app
# ensures that the python output is sent to the terminal without buffering
ENV PYTHONUNBUFFERED=TRUE
# Copy the current directory contents into the container at /app
COPY . /app
# create a virtual environment and activate it
RUN python3 -m venv cell-exp
# activate virtual environment
CMD source cell-exp/bin/activate
# Install the required libraries
RUN pip --no-cache-dir install --upgrade pip &&\
pip --no-cache-dir install -r requirements.txt
# Make port 1111 available to the world outside this container
EXPOSE 2323
# Create mountpoint
VOLUME /app
# Run jupyter when container launches
CMD ["jupyter", "notebook", "--ip='*'", "--port=1111", "--no-browser", "--allow-root"]