#!/bin/bash
# if a command fails, the script will stop running and exit immediately
set -e
# Set execute permission on the script
chmod +x predeploy.sh
# Build the Docker image
docker-compose build --build-arg TARGET_ENV="dev"
# Start the containers
docker-compose up -d
So turns out, AWS ELB (docker) doesn't support customizing a run and build command on the Managed platform type
You have to change to the Custom platform type in order to customize a run and build command.
Hi, I am using AWS ELB (docker) for my production website and I am running into this stuck for days.
I need to custom a docker-compose build and run command into something like
but couldn't get it to work. Please help
Here are solutions that I tried:
.ebextensions/myapp.config
.elasticbeanstalk/config.yml
.ebextensions/predeploy.sh