2
0
mirror of https://github.com/Shawn-Shan/fawkes.git synced 2024-12-23 13:19:33 +05:30
fawkes/Dockerfile

17 lines
662 B
Docker
Raw Normal View History

2020-11-30 21:52:22 +05:30
FROM python:3.7-slim
2021-07-20 07:09:39 +05:30
ENV PATH="~/.local/bin:${PATH}"
ENV PATH="/home/testuser/.local/bin:${PATH}"
2020-11-30 21:52:22 +05:30
2021-07-20 07:09:39 +05:30
#Mirror host user
#Efficently mirror host user and share files between host and docker
#https://stackoverflow.com/a/44683248/298240
ARG UNAME=testuser
ARG UID=1000
ARG GID=1000
#FIXES https://stackoverflow.com/a/63377623/298240
RUN apt-get update && apt-get install -y ffmpeg libsm6 libxext6 python3-opencv sudo && groupadd -g $GID -o $UNAME && useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME && echo "testuser:testuser" | chpasswd && adduser testuser sudo
USER $UNAME
WORKDIR /home/$UNAME/workspace
RUN pip install --upgrade h5py==2.10.0 fawkes opencv-python