-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.Dockerfile
42 lines (31 loc) · 1.16 KB
/
.gitpod.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
42
FROM gitpod/workspace-full:latest
ENV POETRY_VERSION=1.1.4
RUN sudo apt-get update -y --fix-missing \
&& sudo apt-get install -y \
build-essential \
curl \
libgflags-dev \
libsnappy-dev \
zlib1g-dev \
libbz2-dev \
liblz4-dev
ENV LD_LIBRARY_PATH=/usr/local/lib \
PORTABLE=1
RUN cd /tmp \
&& sudo mkdir -p /usr/local/lib/pkgconfig \
&& curl -sL rocksdb.tar.gz https://github.com/facebook/rocksdb/archive/v6.13.3.tar.gz > rocksdb.tar.gz \
&& tar fvxz rocksdb.tar.gz \
&& cd rocksdb-6.13.3 \
&& sudo make shared_lib \
&& sudo make install-shared
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py > get-poetry.py && \
python get-poetry.py --version ${POETRY_VERSION}
RUN rm -f get-poetry.py
RUN sudo groupadd -g 1002 poetry && \
sudo useradd -u 1001 -g poetry -d /home/poetry -M poetry
RUN sudo mkdir /home/poetry && \
sudo mv /home/gitpod/.poetry /home/poetry/.poetry
ENV PATH=$PATH:/home/poetry/.poetry/bin
COPY poetry.lock pyproject.toml ./
RUN poetry config virtualenvs.create false \
&& poetry install --no-interaction --no-ansi --no-dev