nest2D icon indicating copy to clipboard operation
nest2D copied to clipboard

add Dockerfile

Open michaelschem opened this issue 3 years ago • 2 comments

michaelschem avatar Jul 26 '22 01:07 michaelschem

This change will make it easier for others to get this repository working.

michaelschem avatar Jul 26 '22 01:07 michaelschem

Great idea. I created my own Docker file. The one in this pull request is more compact.

FROM ubuntu:20.04

# Install git and related
RUN apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -yq \
        curl \
        git \
        zip \
        unzip \
        pkg-config \
        python3-dev \
        python3-pip \
        cmake \
        libboost-dev \
        libpolyclipping-dev \
        libnlopt-cxx-dev

# Install nest2D
# Add a non-root user
ARG USER="nest2d"
ENV USER=${USER}
ENV HOME /home/${USER}
RUN adduser --shell /bin/sh --disabled-password --gecos "" ${USER} 

USER ${USER}
WORKDIR ${HOME}

RUN git clone https://github.com/markfink/nest2D
WORKDIR ${HOME}/nest2D
RUN pip install nest2D

ENTRYPOINT bash

mherzog01 avatar May 12 '23 02:05 mherzog01