I'm using simple docker-compose container images. Here's my docker-compose.yml
version: '2' services: db: image: postgres:10.2 ports: - "5432:5432" environment: ... skipped for brevity volumes: - "./server:/docker-entrypoint-initdb.d" postgrest: image: postgrest/postgrest ports: - "3000:3000" environment: ... skipped for brevity webapp: image: node:8.9 ports: - "3001:3001" volumes: - "./client:/client" - "./package.json:/client/package.json" - "./node_modules:/client/node_modules" environment: - API_URL=${API_URL} working_dir: /client command: npm run dev -- -p 3001 which I want to deploy to AWS Elasticbeanstalk using CodePipeline. As I don't have any build step (thus no Dockerfile) I'm wondering how to instruct my buildspec.yml
version: 0.2 phases: install: commands: - echo starting on `date` - npm install pre_build: commands: - cp .env.example .env build: commands: - docker-compose up -d post_build: commands: - echo completing on `date` to properly build using docker-compose?
I believe I just need a Dockerrun.aws.json file although CodePipeline is expecting some build artifact:

docker pull ...anddocker savein order to have all images saved as.tarfile and push that to AWS?