-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile_databricks
35 lines (25 loc) · 985 Bytes
/
Dockerfile_databricks
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
34
35
# TODO: use a non-bloated os like alpine and remove the venv
# FROM python:3.11.7-alpine3.19
FROM databricksruntime/standard
# FROM python:3.11.7-bookworm
# FROM ubuntu:22.04
# Set bash as default shell
# as per https://github.com/moby/moby/issues/7281
# COPY Dockerfile_databricks /Dockerfile_databricks
SHELL ["/bin/bash", "-c"]
ENV SHELL=/bin/bash
RUN apt-get update && apt-get install -y bash sudo xz-utils
WORKDIR /app
COPY ./src/machineconfig/setup_linux /app/setup_linux
RUN chmod +x /app/setup_linux/*
ENV package_manager="apt"
RUN /app/setup_linux/apps.sh
RUN /app/setup_linux/apps_dev.sh
RUN apt install software-properties-common -y
# sudo apt-get install software-properties-common -y # gives add-apt-repository command
# this is required to add deadsnakes ppa repository
RUN /bin/bash /app/setup_linux/ve.sh
# ENV CROCODILE_EXRA="full"
RUN /bin/bash /app/setup_linux/repos.sh
RUN /bin/bash /app/setup_linux/symlinks.sh
RUN /bin/bash /app/setup_linux/devapps.sh