File tree Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Expand file tree Collapse file tree 2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 2
2
/.quarto /
3
3
_site /
4
4
.DS_Store
5
- venv /
5
+ venv /
6
+ .history /
Original file line number Diff line number Diff line change @@ -5,11 +5,25 @@ FROM python:3.10-slim
5
5
RUN apt-get update && apt-get install -y \
6
6
curl \
7
7
git \
8
+ wget \
9
+ gdebi-core \
8
10
&& apt-get clean && rm -rf /var/lib/apt/lists/*
9
11
10
- # Install Quarto
11
- RUN curl -fsSL https://github.com/quarto-dev/quarto-cli/releases/download/v1.2.313/quarto-1.2.313-linux-amd64.tar.gz | tar -xz -C /opt \
12
- && ln -s /opt/quarto-1.2.313/bin/quarto /usr/local/bin/quarto
12
+ # Set architecture-specific Quarto URL
13
+ # This runs at build time to determine the architecture and download the correct Quarto package.
14
+ RUN ARCH=$(uname -m) && \
15
+ if [ "$(uname -m)" = "x86_64" ]; then \
16
+ ARCH="amd64"; \
17
+ elif [ "$(uname -m)" = "arm64" ] || [ "$(uname -m)" = "aarch64" ]; then \
18
+ ARCH="arm64"; \
19
+ else \
20
+ echo "Unsupported architecture"; exit 1; \
21
+ fi && \
22
+ curl -fsSL https://github.com/quarto-dev/quarto-cli/releases/download/v1.7.6/quarto-1.7.6-linux-${ARCH}.tar.gz | tar -xz -C /opt \
23
+ && ln -s /opt/quarto-1.7.6/bin/quarto /usr/local/bin/quarto
24
+
25
+ # Verify Quarto installation
26
+ RUN quarto --version
13
27
14
28
# Define an argument for the working directory
15
29
ARG WORKDIR=/workspaces/hds_stats_foundations
You can’t perform that action at this time.
0 commit comments