modify algo for docker deploys

This commit is contained in:
johnwesley 2019-05-11 20:12:16 -04:00
parent 86cc160188
commit 73f2b91b02
2 changed files with 2 additions and 1 deletions

View file

@ -3,6 +3,7 @@ FROM python:2-alpine
ARG VERSION="git"
ARG PACKAGES="bash libffi openssh-client openssl rsync tini"
ARG BUILD_PACKAGES="gcc libffi-dev linux-headers make musl-dev openssl-dev"
ARG DOCKER_BUILD="docker"
LABEL name="algo" \
version="${VERSION}" \

2
algo
View file

@ -2,7 +2,7 @@
set -e
if [ -z ${VIRTUAL_ENV+x} ]
if [[ -z ${VIRTUAL_ENV+x} && -z ${DOCKER_BUILD+x} ]]
then
ACTIVATE_SCRIPT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/env/bin/activate"
if [ -f "$ACTIVATE_SCRIPT" ]