Open Zeebrow opened 2 years ago
This should do the trick:
SNAKE_VER=3.7 cd $(mktemp -d) git clone https://github.com/Zeebrow/quickhost.git git clone https://github.com/Zeebrow/quickhost-plugins.git cat <<EOF > Dockerfile FROM python:$SNAKE_VER COPY ./quickhost /app/quickhost COPY ./quickhost-plugins/plugins/aws /app/aws WORKDIR /app RUN pip install --upgrade pip && \ pip install -e quickhost && \ pip install -e aws ENTRYPOINT ["main.py"] EOF if [[ $(groups) =~ docker ]]; then docker build -t quickhost-test . && docker run quickhost-test make --aws asdf else sudo docker build -t quickhost-test . && sudo docker run quickhost-test make --aws asdf
This should do the trick: