forked from feathr-ai/feathr
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (25 loc) · 1.01 KB
/
Dockerfile
File metadata and controls
35 lines (25 loc) · 1.01 KB
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
FROM python:3.9
ARG CODE_SERVER_VERSION=2.1692-vsc1.39.2
ENV CODE_SERVER_AUTH=none \
CODE_SERVER_PASSWORD=feathr \
JUPYTER_TOKEN=feathr
# install enssential libs
RUN apt-get update && \
apt-get install -y \
wget curl git cmake
# install useful tools: sshd, jupyterlab and so on...
RUN apt-get update && \
apt-get install -y supervisor vim sudo zip unzip htop && \
pip install --no-cache-dir jupyterlab==0.35.4 pandavro
RUN mkdir /feathr
WORKDIR /feathr
RUN pip install git+https://github.com/linkedin/feathr.git#subdirectory=feathr_project
# install code-server
RUN mkdir -p /opt/code-server && \
wget -qO- https://github.com/cdr/code-server/releases/download/${CODE_SERVER_VERSION}/code-server${CODE_SERVER_VERSION}-linux-x86_64.tar.gz | tar -xzf - --strip=1 -C /opt/code-server
# copy supervisord configuration and mkdir
COPY supervisord.conf /opt/supervisord.conf
RUN mkdir -p /opt/logs
# 8080: VsCode, 9090: jupyter
EXPOSE 8080 9090
CMD ["supervisord", "-c", "/opt/supervisord.conf"]