-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (39 loc) · 1.29 KB
/
Dockerfile
File metadata and controls
52 lines (39 loc) · 1.29 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
48
49
50
51
52
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 \
locales \
libmariadb3 \
libmariadb-dev \
&& rm -rf /var/lib/apt/lists/*
RUN locale-gen en_US \
&& locale-gen en_US.UTF-8 \
&& update-locale LC_ALL=en_US.UTF-8 \
&& update-locale LANG=en_US.UTF-8
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"
ARG BUILDOS
ARG BUILDARCH
RUN export YQ_VERSION=v4.2.0 && wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_${BUILDOS}_${BUILDARCH} -O /home/$USERNAME/.local/bin/yq &&\
chmod +x /home/$USERNAME/.local/bin/yq
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 --no-install-project --no-install-workspace --all-extras
# Required to run docker in docker setup command
USER root