Skip to content

Commit

Permalink
Merge pull request #327 from metabrainz/docker-args
Browse files Browse the repository at this point in the history
Docker args
  • Loading branch information
paramsingh authored Mar 5, 2019
2 parents 0119746 + d28d101 commit ec6dacd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ RUN npm install

FROM acousticbrainz-base AS acousticbrainz-dev

ARG deploy_env

COPY requirements_development.txt /code/requirements_development.txt
RUN pip install --no-cache-dir -r requirements_development.txt

Expand All @@ -92,6 +94,8 @@ COPY . /code

FROM acousticbrainz-base AS acousticbrainz-prod

ARG deploy_env

RUN pip install uWSGI==2.0.17.1

# Consul template service is already set up, just need to copy the configuration
Expand Down
2 changes: 1 addition & 1 deletion docker/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ TAG=${2:-beta}

echo "Building AcousticBrainz web image with env $ENV tag $TAG..."
docker build -t metabrainz/acousticbrainz:$TAG \
--target acousticbrainz-prod
--target acousticbrainz-prod \
--build-arg GIT_COMMIT_SHA=$(git rev-parse HEAD) \
--build-arg deploy_env=$ENV .
echo "Done!"
Expand Down

0 comments on commit ec6dacd

Please sign in to comment.