-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile
33 lines (26 loc) · 998 Bytes
/
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
# syntax=docker.io/docker/dockerfile:1.7-labs
FROM ubuntu:focal
# Prevent popups during install of requirements
ENV DEBIAN_FRONTEND=noninteractive
# App Requirements
RUN apt-get update -qq \
&& apt-get install -y -qq git build-essential gdb lcov pkg-config \
libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \
libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \
lzma lzma-dev python3-tk tk-dev uuid-dev zlib1g-dev \
curl \
&& rm -rf /var/lib/apt/lists/*
# pyenv for guaranteed py 3.12
ENV HOME="/root"
WORKDIR ${HOME}
RUN curl https://pyenv.run | bash
ENV PYENV_ROOT="${HOME}/.pyenv"
ENV PATH="${PYENV_ROOT}/shims:${PYENV_ROOT}/bin:${PATH}"
# Ensure tkinter
ENV PYTHON_CONFIGURE_OPTS "--enable-shared"
# install py 3.12
ENV PYTHON_VERSION=3.12.6
RUN pyenv install --verbose ${PYTHON_VERSION}
RUN pyenv global ${PYTHON_VERSION}
WORKDIR /usr/src/app
ENTRYPOINT ["sh", "-c", "pip install --no-cache-dir .[build] && pyinstaller ou_dedetai.spec"]