Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
1.3 KiB
Docker
Raw Permalink Normal View History

2021-02-09 00:23:14 +00:00
# -*- mode: Dockerfile -*-
2024-08-09 15:54:32 +02:00
FROM ubuntu:22.04
2021-02-09 00:23:14 +00:00
ARG CHANNEL
ENV CHANNEL=${CHANNEL:-latest}
RUN apt-get update \
&& apt-get install -y \
vim \
ssh \
sudo \
wget \
software-properties-common ;\
rm -rf /var/lib/apt/lists/*
2021-03-08 14:27:56 +01:00
RUN useradd --user-group --create-home --shell /bin/bash IfcOpenShell ;\
echo "IfcOpenShell ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
2021-02-09 00:23:14 +00:00
ENV DEBIAN_FRONTEND=noninteractive
RUN echo "deb http://archive.ubuntu.com/ubuntu focal-proposed main restricted" | tee -a /etc/apt/sources.list; \
echo "deb http://archive.ubuntu.com/ubuntu focal-proposed universe" | tee -a /etc/apt/sources.list; \
echo "deb http://archive.ubuntu.com/ubuntu focal-proposed multiverse" | tee -a /etc/apt/sources.list; \
apt-get -qq update; \
apt-get -y install tzdata dos2unix rsync; \
2024-08-09 15:54:32 +02:00
apt-get -y install python3 libxml2 libpython3.10 \
2022-08-31 21:01:09 +02:00
libboost-all-dev \
2022-08-31 20:28:26 +02:00
libocct-foundation-dev libocct-modeling-algorithms-dev libocct-modeling-data-dev \
libocct-ocaf-dev libocct-visualization-dev libocct-data-exchange-dev \
2023-03-28 15:49:27 +02:00
libhdf5-serial-dev python3-pytest ; \
2021-02-10 07:04:43 +00:00
rm -rf /var/lib/apt/lists/* ;
2021-02-09 00:23:14 +00:00
2021-03-08 14:27:56 +01:00
COPY . /home/IfcOpenShell/
RUN ls -lrtR /home/IfcOpenShell
2021-02-09 00:23:14 +00:00
2021-03-08 14:27:56 +01:00
RUN dpkg -i /home/IfcOpenShell/*.deb
2021-02-09 00:23:14 +00:00
2021-03-08 14:27:56 +01:00
USER IfcOpenShell
2021-02-09 00:23:14 +00:00