-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (33 loc) · 922 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
35
36
37
38
39
40
41
FROM python:3.11 AS base
ARG DEV_cadence
ENV \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
PYTHONHASHSEED=random \
PIP_NO_CACHE_DIR=off \
PIP_DISABLE_PIP_VERSION_CHECK=on \
PIP_DEFAULT_TIMEOUT=100 \
PIP_SRC=/src \
PIPENV_HIDE_EMOJIS=true \
NO_COLOR=true \
PIPENV_NOSPIN=true
# Port for JupyterLab server
EXPOSE 8888
RUN mkdir -p /app
WORKDIR /app
# Pip and pipenv
RUN pip install --upgrade pip
RUN pip install pipenv
# Some package stuff
COPY setup.py ./
COPY src/cadence/__init__.py src/cadence/__init__.py
# Install dependencies
COPY Pipfile Pipfile.lock ./
RUN --mount=source=.git,target=.git,type=bind \
pipenv install --system --deploy --ignore-pipfile --dev
# Run the jupyter lab server
RUN mkdir -p /run_scripts
COPY /bash_scripts/docker_entry /run_scripts
RUN chmod +x /run_scripts/*
CMD ["/bin/bash", "/run_scripts/docker_entry"]