FROM alpine # setup time-zone https://wiki.alpinelinux.org/wiki/Setting_the_timezone RUN apk add --update tzdata && cp /usr/share/zoneinfo/Europe/Paris /etc/localtime && echo "Europe/Paris" > /etc/timezone && apk del tzdata RUN apk add --update python3 py3-pip RUN apk add --update py3-psycopg2 git ARG uid=1000 ARG username=sam ENV HOME=/home/$username RUN addgroup --gid $uid --system $username \ && adduser --uid $uid --system $username --ingroup $username \ && addgroup --system $username audio \ && addgroup --system $username video \ && addgroup --system $username disk \ && addgroup --system $username lp \ && addgroup --system $username dialout \ && addgroup --system $username users \ && chown -R $username:$username $HOME ENV PATH=$HOME/.local/bin:$PATH ARG uid=1000 ARG username=sam ENV HOME=/home/$username USER $username WORKDIR $HOME RUN python3 -m pip install git+https://github.com/flexxui/flexx/@cb10d5688e97b50a79ab1d32b7d5d000226dadcb#egg=flexx COPY . /ipfsdocs/ RUN python3 -m pip install /ipfsdocs/ CMD ["ipfsdocs"]