mirror of
https://gitlab.com/Anson-Projects/projects.git
synced 2025-07-24 23:21:24 +00:00
FIx Dev Container
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -1,11 +1,12 @@
|
||||
FROM ubuntu:22.04
|
||||
FROM debian:bookworm
|
||||
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
ENV JULIA_VERSION=1.11.1 \
|
||||
ENV JULIA_VERSION=1.11.5 \
|
||||
JULIA_MAJOR_VERSION=1.11 \
|
||||
JULIA_PATH=/usr/local/julia \
|
||||
QUARTO_VERSION=1.6.37
|
||||
JULIA_PATH=/usr/local/julia
|
||||
|
||||
ENV QUARTO_VERSION=1.7.31
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
apt-utils dialog \
|
||||
@@ -13,19 +14,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
python3 python3-pip python3-dev \
|
||||
r-base \
|
||||
gcc g++ \
|
||||
wget curl tar \
|
||||
curl tar \
|
||||
openssh-client \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Use a RUN command for architecture detection and conditional logic
|
||||
RUN wget https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-$(if [ "$(uname -m)" = "x86_64" ]; then echo "amd64"; else echo "arm64"; fi).tar.gz -O quarto.tar.gz \
|
||||
RUN curl -fsSL "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-$(if [ "$(uname -m)" = "x86_64" ]; then echo "amd64"; else echo "arm64"; fi).tar.gz" -o quarto.tar.gz \
|
||||
&& tar -xzf quarto.tar.gz -C /opt \
|
||||
&& mkdir -p /opt/quarto \
|
||||
&& mv /opt/quarto-${QUARTO_VERSION}/* /opt/quarto/ \
|
||||
&& ln -s /opt/quarto/bin/quarto /usr/local/bin/quarto \
|
||||
&& rm -rf quarto.tar.gz /opt/quarto-${QUARTO_VERSION}
|
||||
|
||||
RUN python3 -m pip install jupyter webio_jupyter_extension jupyter-cache
|
||||
RUN python3 -m pip install --break-system-packages jupyter webio_jupyter_extension jupyter-cache
|
||||
|
||||
RUN curl -fsSL "https://julialang-s3.julialang.org/bin/linux/$(if [ "$(uname -m)" = "x86_64" ]; then echo "x64"; else echo "aarch64"; fi)/${JULIA_MAJOR_VERSION}/julia-${JULIA_VERSION}-linux-$(if [ "$(uname -m)" = "x86_64" ]; then echo "x86_64"; else echo "aarch64"; fi).tar.gz" -o julia.tar.gz \
|
||||
&& tar -xzf julia.tar.gz -C /tmp \
|
||||
|
Reference in New Issue
Block a user