-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (34 loc) · 1.26 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
37
38
39
40
41
42
43
44
45
46
FROM ubuntu:focal
USER root
ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=America/Chicago
RUN apt-get update
RUN apt-get install -y apt-utils 2>/dev/null
RUN apt-get install -y software-properties-common
RUN apt-get install -y tzdata
RUN apt-get dist-upgrade -y
RUN add-apt-repository ppa:freecad-maintainers/freecad-stable
RUN apt-get -y update
RUN apt-get -y install freecad && apt-get -y upgrade
RUN apt-get install -y git nano python3-pip
RUN apt-get install -y numpy-stl
RUN apt-get update \
&& apt-get install -y \
sudo \
wget \
curl
# Create a new user called foam
RUN useradd --user-group --create-home --shell /bin/bash ubuntu ;\
echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
RUN curl -s https://dl.openfoam.com/add-debian-repo.sh | bash ;\
apt-get -y install openfoam2112-default; \
echo "source /usr/lib/openfoam/openfoam2112/etc/bashrc " >> /home/ubuntu/.bashrc; \
echo "export OMPI_MCA_btl_vader_single_copy_mechanism=none" >> /home/ubuntu/.bashrc ;\
echo "source /home/ubuntu/.bashrc" >> /home/ubuntu/.profile
# set the default container user to foam
USER ubuntu
WORKDIR /home/ubuntu
COPY --chown=ubuntu:ubuntu . /home/ubuntu
RUN pip3 install -e .
ENV PATH "$PATH:/home/ubuntu/.local/bin"
CMD ["limbo", "--help"]