-
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathDockerfile.ci-build-ubuntu
More file actions
66 lines (57 loc) · 1.72 KB
/
Dockerfile.ci-build-ubuntu
File metadata and controls
66 lines (57 loc) · 1.72 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
FROM ubuntu:26.04@sha256:f3d28607ddd78734bb7f71f117f3c6706c666b8b76cbff7c9ff6e5718d46ff64
WORKDIR /workspace
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
ENV MISE_DATA_DIR="/mise"
ENV MISE_CACHE_DIR="/mise/cache"
ENV MISE_INSTALL_PATH="/usr/local/bin/mise"
ENV PATH="/mise/shims:/usr/local/bin:/usr/bin:$PATH"
# Install build dependencies
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
dpkg \
dpkg-dev \
elfutils \
fakeroot \
flatpak \
flatpak-builder \
gcc \
git \
libc6-dev \
libfuse2 \
libgtk-3-dev \
libayatana-appindicator3-dev \
libssl-dev \
libx11-dev \
libx11-xcb-dev \
libxkbcommon-dev \
libxkbcommon-x11-dev \
libxtst-dev \
ostree \
pkg-config \
rpm \
sudo \
unzip \
wget \
xorg-dev \
xz-utils \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install pinned runtimes from mise.toml.
COPY mise.toml ./
RUN curl https://mise.run | sh \
&& mise trust -a \
&& mise install
# Copy Go module files and download dependencies
COPY go.mod go.sum ./
RUN go mod download && go mod verify
# Install AppImageTool (pin to a specific version for reproducibility)
RUN wget -q https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /usr/local/bin/appimagetool \
&& chmod +x /usr/local/bin/appimagetool
# Create a non-root user for builds
RUN useradd -ms /bin/bash builduser && \
echo 'builduser ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/builduser
# Entrypoint for CI
CMD ["bash"]