Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:4-alpine

WORKDIR /root

COPY package.json npm-shrinkwrap.json ./

RUN apk update \
&& apk upgrade \
&& apk add bash \
&& npm install \
&& mv node_modules node_modules_cache \
&& rm -r package.json npm-shrinkwrap.json /tmp/*
9 changes: 9 additions & 0 deletions buildspec.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
version: 0.2

phases:
pre_build:
commands:
- aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 840814869112.dkr.ecr.us-west-2.amazonaws.com
install:
commands:
- npm install
build:
commands:
- npm test
- docker build -t eshdutta-repo .
- docker tag eshdutta-repo:latest 840814869112.dkr.ecr.us-west-2.amazonaws.com/eshdutta-repo:latest
post_build:
commands:
- docker push 840814869112.dkr.ecr.us-west-2.amazonaws.com/eshdutta-repo:latest

artifacts:
files:
- '**/*'
1 change: 1 addition & 0 deletions dummy.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<Thblah his is a dummy file blah blah>