Skip to content

Commit ce22846

Browse files
committed
Basic docker build example.
1 parent 36b5a01 commit ce22846

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
services:
22

3+
linux_math_base:
4+
build:
5+
context: ./linux_math_base
6+
dockerfile: Dockerfile
7+
container_name: linux-math-base
8+
image: linux-math-base
9+
platform: linux/amd64
10+

code/08-reproducibility/linux_math_base/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,17 @@ ENV LC_ALL=en_US.UTF-8
66
ENV TZ="America/Los_Angeles"
77
ENV DEBIAN_FRONTEND=noninteractive
88

9-
# Install Node.js for Jupyter extensions and widgets
9+
RUN apt-get update
10+
RUN apt-get upgrade -y
11+
RUN apt-get autoremove -y
12+
1013
RUN apt-get install -y curl gnupg
14+
15+
# Install Node.js for Jupyter extensions and widgets
1116
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
1217
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
1318

1419
RUN apt-get update
15-
RUN apt-get upgrade -y
16-
RUN apt-get autoremove -y
1720

1821
RUN apt-get install -y nodejs
1922

@@ -27,6 +30,8 @@ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/
2730

2831
RUN update-ca-certificates
2932

33+
# RUN apt install -y git
34+
3035
# Install uv first to manage Python apps.
3136
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
3237
RUN echo "downloaded uv successfully"

0 commit comments

Comments
 (0)