-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (31 loc) · 1.13 KB
/
Dockerfile
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
36
FROM debian
# Configure environment variables and time zone
# to avoid questions during docker build
ENV TZ="Europe/Berlin"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
apt-get update -y && \
apt-get install -y -o Acquire::Retries=10 \
--no-install-recommends \
python3 \
python3-pip \
python3-venv \
git && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# TODO: Make /screenshot functionality work
# After installing firefox-esr or chromium it still doesn't work
# ("No suitable browser found")
# Installing chromium lets the docker image size increase to 1.45 GB
# chromium \
# Installing firefox-esr lets the docker image size increase to 1.25 GB
# firefox-esr \
RUN python3 -m venv /home/.venv
RUN /home/.venv/bin/python -m pip install mentat
# TODO: Get rid of the venv as we're anyway on a docker container
# Use pip --break-system-packages to avoid the
# externally-managed-environment error
#RUN pip install --break-system-packages mentat
#CMD ["python", "-m", "mentat"]
#VOLUME ["/root/.mentat"]
CMD ["/home/.venv/bin/python", "-m", "mentat"]