-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile-dev
49 lines (40 loc) · 1.24 KB
/
Dockerfile-dev
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
43
44
45
46
47
48
49
FROM ubuntu:jammy
# Make sure that we don't get any interactive prompts
ENV DEBIAN_FRONTEND noninteractive
# Install Python and aux packages
RUN apt-get update && apt-get install -y \
python3.10 \
python3-pip \
python3-setuptools \
python3-wheel \
python3-distutils \
build-essential \
locales
# Alias `python3` to `python` and `pip3` to `pip`
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 && \
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
# Install Node.js
RUN apt-get update && apt-get install -y \
curl \
gnupg \
ca-certificates \
lsb-release && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install -y nodejs
# Update npm (got installed in the previous layer with `nodejs`)
RUN npm install -g [email protected]
# Install utilities
RUN apt-get update && apt-get install -y \
make \
jq \
vim && \
pip install killport && \
pip install ipython
# Install Poetry
RUN python -m pip install --upgrade pip && \
pip install poetry==1.8.2
# Install Poetry dependencies
COPY middleware/poetry.lock middleware/pyproject.toml ./
RUN poetry config virtualenvs.create false && \
poetry install
WORKDIR /usr/src