-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile-dev
More file actions
47 lines (38 loc) · 1.27 KB
/
Dockerfile-dev
File metadata and controls
47 lines (38 loc) · 1.27 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
36
37
38
39
40
41
42
43
44
45
46
47
FROM ubuntu:noble
# 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.12 \
python3-pip \
python3-setuptools \
python3-wheel \
build-essential \
locales
# Alias `python3` to `python` and `pip3` to `pip`
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3.12 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 npm@10.9.2
# Install utilities. Since it's a container we cheerfully install everything globally
RUN apt-get update && apt-get install -y \
make \
jq \
vim && \
pip config set global.break-system-packages true && \
pip install killport ipython
# Install Poetry
RUN pip install poetry
# Install Poetry dependencies
COPY middleware/poetry.lock middleware/pyproject.toml ./
RUN poetry config virtualenvs.create false && \
poetry install --no-root
WORKDIR /usr/src