Skip to content

Commit

Permalink
[Docker] Make Dockerfile name configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Sep 30, 2016
1 parent c04f163 commit 751ebd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ REDIS_IMAGE=redis

# App image name for use if you inted to push it to docker registry/hub.
APP_PROD_IMAGE=my-ez-app
APP_DOCKER_FILE=Dockerfile

# Install config
INSTALL_EZ_INSTALL_TYPE=clean
4 changes: 3 additions & 1 deletion doc/docker-compose/base-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ version: '2'

services:
app:
build: ../../
build:
context: ../../
dockerfile: ${APP_DOCKER_FILE}
image: ${APP_PROD_IMAGE}
depends_on:
- db
Expand Down

0 comments on commit 751ebd0

Please # to comment.