-
-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (27 loc) · 1020 Bytes
/
Copy pathDockerfile
File metadata and controls
33 lines (27 loc) · 1020 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
FROM ubuntu:24.04
LABEL org.opencontainers.image.source=https://github.com/veltzer/demos-os-linux
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
curl \
git \
gh \
python3 \
python3-venv \
software-properties-common \
&& add-apt-repository universe \
&& apt-get update
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:${PATH}"
# CACHEBUST is set per build to ensure the curl below always refetches
# `latest` (otherwise the buildx layer cache would serve a stale binary
# even when a new rsconstruct release exists).
ARG CACHEBUST=1
RUN echo "cachebust=${CACHEBUST}" \
&& curl -fsSL "https://github.com/veltzer/rsconstruct/releases/latest/download/rsconstruct-linux-x86_64" \
-o /usr/local/bin/rsconstruct \
&& chmod +x /usr/local/bin/rsconstruct \
&& rsconstruct version
WORKDIR /build
COPY rsconstruct.toml ./
RUN rsconstruct tools install-deps --yes