mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-08 19:44:57 -05:00
37 lines
1.1 KiB
Docker
37 lines
1.1 KiB
Docker
FROM ubuntu:22.04
|
|
|
|
ENV TZ=Europe/Paris
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
# Replace default archive.ubuntu.com with fr mirror
|
|
# original archive showed performance issues and is farther away
|
|
RUN sed -i 's|^deb http://archive|deb http://fr.archive|g' /etc/apt/sources.list
|
|
|
|
RUN mkdir /pkg && mkdir /app
|
|
WORKDIR /pkg
|
|
COPY docker/release_resources/release_requirements.txt .
|
|
COPY ./pkg/*.whl .
|
|
|
|
RUN apt-get update && apt-get upgrade --no-install-recommends -y && \
|
|
apt-get install --no-install-recommends -y \
|
|
build-essential \
|
|
python3-pip \
|
|
python3.8 \
|
|
python3.8-dev \
|
|
python3.8-tk \
|
|
python-is-python3 && \
|
|
rm -rf /var/lib/apt/lists/* && \
|
|
python3 -m pip install --no-cache-dir --upgrade pip wheel setuptools && \
|
|
echo "export MPLBACKEND=TkAgg" >> /root/.bashrc && \
|
|
python3 -m pip install --no-cache-dir "$(ls ./*.whl)" && \
|
|
python3 -m pip install --no-cache-dir -r release_requirements.txt
|
|
|
|
WORKDIR /app
|
|
COPY docker/release_resources/entry_point.sh ./entry_point.sh
|
|
RUN mkdir /data
|
|
|
|
WORKDIR /data
|
|
VOLUME [ "/data" ]
|
|
|
|
CMD ["/bin/bash", "-i", "/app/entry_point.sh"]
|