File tree 3 files changed +3
-10
lines changed
3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ ADD dist /usr/share/nginx/html
13
13
14
14
WORKDIR /tmp
15
15
16
- COPY index.html.erb .
17
- COPY render_template.rb .
16
+ COPY docker/ index.html.erb .
17
+ COPY docker/ render_template.rb .
18
18
COPY dist/manifest.json .
19
19
20
20
CMD ruby render_template.rb > /usr/share/nginx/html/index.html && \
Original file line number Diff line number Diff line change 14
14
< link href ="<%= "#{ ENV [ 'ASSET_URL' ] } /#{ @data [ 'vendor.css' ] } " %> " rel ="stylesheet "> </ head >
15
15
< body >
16
16
17
- < mpt-app > test </ mpt-app >
17
+ < mpt-app > </ mpt-app >
18
18
19
19
<!-- Google Analytics: change UA-74585747-1 to be your site's ID -->
20
20
< script >
Original file line number Diff line number Diff line change @@ -6,22 +6,15 @@ if [ ! -v AWS_SESSION_TOKEN ]; then
6
6
source ./scripts/switch-role.sh
7
7
fi
8
8
9
-
10
9
yarn run build
11
10
12
- (
13
- cd docker
14
-
15
- cp -rfp ../dist .
16
-
17
11
readonly DOCKER_NAME=micropost/frontend
18
12
readonly AWS_ACCOUNT_NUMBER=$( aws sts get-caller-identity --output text --query ' Account' )
19
13
20
14
eval $( aws ecr get-login)
21
15
docker build -t ${DOCKER_NAME} .
22
16
docker tag ${DOCKER_NAME} :latest ${AWS_ACCOUNT_NUMBER} .dkr.ecr.${AWS_DEFAULT_REGION} .amazonaws.com/${DOCKER_NAME} :latest
23
17
docker push ${AWS_ACCOUNT_NUMBER} .dkr.ecr.${AWS_DEFAULT_REGION} .amazonaws.com/${DOCKER_NAME} :latest
24
- )
25
18
26
19
# aws sns publish --topic-arn "arn:aws:sns:${AWS_DEFAULT_REGION}:${AWS_ACCOUNT_NUMBER}:backend_app_updated" \
27
20
# --message "${ENV}: ${TRAVIS_COMMIT}"
You can’t perform that action at this time.
0 commit comments