-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (22 loc) · 739 Bytes
/
Dockerfile
File metadata and controls
33 lines (22 loc) · 739 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
# DOCKERFILE for Python for Data Science
# Set base image
FROM python:3.10-slim-bookworm
WORKDIR /app
# Update Linux package list and install some key libraries, including latex
RUN apt-get -y update && apt-get install -y openssl graphviz \
nano texlive graphviz-dev \
bash build-essential git curl
# change default shell from ash to bash
RUN sed -i -e "s/bin\/ash/bin\/bash/" /etc/passwd
# Create the environment:
COPY uv.lock .
COPY pyproject.toml .
# Install uv
COPY --from=ghcr.io/astral-sh/uv:0.5.15 /uv /bin/uv
# Copy the current directory contents into the container at /app
COPY . /app
WORKDIR "/app"
# Install everything at once:
RUN uv sync
RUN uv pip list
RUN echo "Success building the Python4DS container!"