Skip to content

Commit 03ffef9

Browse files
committed
update .gitignore to exclude .history directory; enhance Dockerfile to install Quarto based on architecture and verify installation
1 parent b9ea321 commit 03ffef9

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ docs/
22
/.quarto/
33
_site/
44
.DS_Store
5-
venv/
5+
venv/
6+
.history/

dockerfile

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,25 @@ FROM python:3.10-slim
55
RUN apt-get update && apt-get install -y \
66
curl \
77
git \
8+
wget \
9+
gdebi-core \
810
&& apt-get clean && rm -rf /var/lib/apt/lists/*
911

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
1327

1428
# Define an argument for the working directory
1529
ARG WORKDIR=/workspaces/hds_stats_foundations

0 commit comments

Comments
 (0)