Skip to content

Commit d30705e

Browse files
committed
move Dockerfile on root
1 parent 4752362 commit d30705e

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

docker/Dockerfile renamed to Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ ADD dist /usr/share/nginx/html
1313

1414
WORKDIR /tmp
1515

16-
COPY index.html.erb .
17-
COPY render_template.rb .
16+
COPY docker/index.html.erb .
17+
COPY docker/render_template.rb .
1818
COPY dist/manifest.json .
1919

2020
CMD ruby render_template.rb > /usr/share/nginx/html/index.html && \

docker/index.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<link href="<%= "#{ENV['ASSET_URL']}/#{@data['vendor.css']}" %>" rel="stylesheet"></head>
1515
<body>
1616

17-
<mpt-app>test</mpt-app>
17+
<mpt-app></mpt-app>
1818

1919
<!-- Google Analytics: change UA-74585747-1 to be your site's ID -->
2020
<script>

scripts/deploy.sh

-7
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,15 @@ if [ ! -v AWS_SESSION_TOKEN ]; then
66
source ./scripts/switch-role.sh
77
fi
88

9-
109
yarn run build
1110

12-
(
13-
cd docker
14-
15-
cp -rfp ../dist .
16-
1711
readonly DOCKER_NAME=micropost/frontend
1812
readonly AWS_ACCOUNT_NUMBER=$(aws sts get-caller-identity --output text --query 'Account')
1913

2014
eval $(aws ecr get-login)
2115
docker build -t ${DOCKER_NAME} .
2216
docker tag ${DOCKER_NAME}:latest ${AWS_ACCOUNT_NUMBER}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${DOCKER_NAME}:latest
2317
docker push ${AWS_ACCOUNT_NUMBER}.dkr.ecr.${AWS_DEFAULT_REGION}.amazonaws.com/${DOCKER_NAME}:latest
24-
)
2518

2619
#aws sns publish --topic-arn "arn:aws:sns:${AWS_DEFAULT_REGION}:${AWS_ACCOUNT_NUMBER}:backend_app_updated" \
2720
# --message "${ENV}: ${TRAVIS_COMMIT}"

0 commit comments

Comments
 (0)