newdwh2021/vulnerability-scan/build-push-scanpoint/build-jskult-transfer-receive-file.sh
2025-05-19 10:16:52 +09:00

17 lines
787 B
Bash

#!/bin/bash
cd ../../ecs/jskult-transfer-receive-file || { echo "Error: ディレクトリ変更に失敗しました"; exit 1; }
pipenv update || { echo "pipenv update failed"; exit 1; }
docker pull python:3.12-slim-bookworm
aws ecr get-login-password --region ap-northeast-1 | docker login --username AWS --password-stdin 826466435614.dkr.ecr.ap-northeast-1.amazonaws.com
docker build -t mbj-newdwh2021-staging-jskult-transfer-receive-file-ecr . --no-cache
docker tag mbj-newdwh2021-staging-jskult-transfer-receive-file-ecr:latest 826466435614.dkr.ecr.ap-northeast-1.amazonaws.com/mbj-newdwh2021-staging-jskult-transfer-receive-file-ecr:scan-point
docker push 826466435614.dkr.ecr.ap-northeast-1.amazonaws.com/mbj-newdwh2021-staging-jskult-transfer-receive-file-ecr:scan-point