Skip to content

Commit

Permalink
Merge pull request #59 from CybercentreCanada/container-build-options
Browse files Browse the repository at this point in the history
Container build options (dev)
  • Loading branch information
cccs-douglass authored Sep 23, 2021
2 parents 390149d + 62b70b0 commit b254225
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
ARG branch=latest
FROM cccs/assemblyline-core:$branch
ARG base=cccs/assemblyline-core
FROM $base:$branch
ARG version

# Install assemblyline UI
RUN pip install --no-cache-dir --user assemblyline-service-server==$version && rm -rf ~/.cache/pip
COPY setup.py dist* dist/
RUN pip install --no-cache-dir -f dist --user assemblyline-service-server==$version && rm -rf ~/.cache/pip

# run the app
CMD ["gunicorn", "assemblyline_service_server.patched:app", "--config=python:assemblyline_service_server.gunicorn_config", "--worker-class", "gevent"]
2 changes: 1 addition & 1 deletion pipelines/azure-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ stages:
for IMAGE in "cccs/assemblyline-service-server" "docker.pkg.github.com/cybercentrecanada/assemblyline/assemblyline-service-server"
do
docker build --build-arg version=$VERSION --build-arg branch=$BUILD_TYPE -t $IMAGE:$TAG -t $IMAGE:$BUILD_TYPE -t $IMAGE:$SERIES docker
docker build --build-arg version=$VERSION --build-arg branch=$BUILD_TYPE -t $IMAGE:$TAG -t $IMAGE:$BUILD_TYPE -t $IMAGE:$SERIES . -f docker/Dockerfile
docker push $IMAGE --all-tags
done
Expand Down

0 comments on commit b254225

Please sign in to comment.