mirror of
https://github.com/trailofbits/algo.git
synced 2025-08-09 14:23:05 +02:00
modify algo for docker deploys
This commit is contained in:
parent
86cc160188
commit
73f2b91b02
2 changed files with 2 additions and 1 deletions
|
@ -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
2
algo
|
@ -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" ]
|
||||
|
|
Loading…
Add table
Reference in a new issue