-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (26 loc) · 851 Bytes
/
Dockerfile
File metadata and controls
35 lines (26 loc) · 851 Bytes
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 ubuntu:latest
RUN apt-get -y update \
&& apt-get install -y --no-install-recommends \
git \
make \
wget \
vim \
build-essential \
openssh-client \
ca-certificates \
gnupg2 \
&& rm -rf /var/lib/apt/lists/*
ARG USERNAME=ubuntu
USER $USERNAME
WORKDIR /home/$USERNAME
SHELL ["/bin/bash", "-c"]
RUN set -o pipefail \
&& wget -qO- https://astral.sh/uv/install.sh \
| sh
ENV PATH="/home/$USERNAME/.local/bin/:$PATH"
RUN --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
--mount=type=bind,source=.python-version,target=.python-version \
uv python install
RUN --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
--mount=type=bind,source=.python-version,target=.python-version \
uv sync --python=3.13 --no-install-project --no-install-workspace --all-extras