Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Docker: Development to Production
Search
Kelly Andrews
October 25, 2017
Technology
51
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Docker: Development to Production
Introduction to Docker
Kelly Andrews
October 25, 2017
More Decks by Kelly Andrews
See All by Kelly Andrews
Communications on Fire
kellyjandrews
0
130
Continuous Testing, Integration, and Deployment for JavaScript Projects
kellyjandrews
0
51
Tips for Building Lightweight Docker Images
kellyjandrews
0
58
Serverless Concepts
kellyjandrews
1
210
Other Decks in Technology
See All in Technology
失敗を資産に変えるClaude Code
shinyasaita
0
430
Android の公式 Skill / Android skills
yanzm
0
130
AmazonRoute 53ではじめてのドメイン取得!HTTPS化までの道のりを整理してみた
usanchuu
3
130
ACE-Step-1.5で見る 音楽生成AIのしくみと“破綻だけ直す”Retake機能の開発【zennfes spring 2026 登壇資料】
personabb
1
130
爆速でマルチプロダクトを立ち上げる時 事業・CTO目線で大事にしたい事
miyatakoji
0
100
Amazon Bedrock AgentCore ワークショップ JAWS UG TOHOKU / amazon-bedrock-agentcore-workshop-jawsug-tohoku-2026
gawa
9
690
2026TECHFRESH畢業分享會 - 原生還是跨平台? App 開發踩坑實錄
line_developers_tw
PRO
0
810
やさしいA2A入門
minorun365
PRO
12
1.7k
SONiC Scale-Up Working Group から探る Scale-UpやUltraEthernet機能の実装方法
ebiken
PRO
1
120
エラーバジェットのアラートのタイミングを考える.pdf
kairim0
0
120
「エンジニア進化論」2028年の開発完全自動化、エンジニアはどう進化するか
cyberagentdevelopers
PRO
5
4.5k
2026TECHFRESH畢業分享會 - Lightning Talk - 資料也要 CI/CD? 用 Airbyte 自動化資料同步
line_developers_tw
PRO
0
790
Featured
See All Featured
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
380
Visualization
eitanlees
152
17k
4 Signs Your Business is Dying
shpigford
187
22k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
190
The untapped power of vector embeddings
frankvandijk
2
1.8k
Navigating Weather and Climate Data
rabernat
0
220
Accessibility Awareness
sabderemane
1
140
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
370
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
160
Being A Developer After 40
akosma
91
590k
Getting science done with accelerated Python computing platforms
jacobtomlinson
2
220
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Transcript
None
None
None
None
DEVELOPMENT CODE COMMIT STAGING PRODUCTION
None
None
None
FROM node:8.6.0-alpine WORKDIR /usr/app RUN apk update && apk add
postgresql COPY package.json . RUN npm install --quiet COPY . . CMD ["npm", "start"]
version: '3' services: web: build: . command: npm run dev
volumes: - .:/usr/app/ - /usr/app/node_modules ports: - "3000:3000" depends_on: - postgres environment: DATABASE_URL: postgres://postgres@postgres postgres: image: postgres:9.6.2-alpine
/> docker-compose up Building web Step 1/7 : FROM node:8.6.0-alpine
---> b7e15c83cdaf Step 2/7 : WORKDIR /usr/app ---> Using cache ---> 930841436abd Step 3/7 : RUN apk update && apk add postgresql ---> Using cache ---> 723796574582 Step 4/7 : COPY package.json . ---> ebf3d00f6e65 Removing intermediate container 47a5ab5f7e4c Step 5/7 : RUN npm install --quiet ---> Running in 4d0e1487b2dc
None
DEVELOPMENT CODE COMMIT STAGING PRODUCTION
None
None
web: build: dockerfile_path: Dockerfile image: registry.heroku.com/todos-js/web links: - postgres environment:
DATABASE_URL: postgres://postgres@postgres cached: true postgres: image: postgres:9.6.2-alpine cached: true
- type: parallel steps: - name: lint service: web command:
npm run lint - name: tests service: web command: bin/ci "npm test -- --forceExit"
/> jet steps (step: tests) (step: lint) (image: registry.heroku.com/todos-js/web) (service:
web) (image: registry.heroku.com/todos-js/web) (service: web) Step 1/7 : FROM node:8.6.0-alpine (image: registry.heroku.com/todos-js/web) (service: web) ---> b7e15c83cdaf (image: registry.heroku.com/todos-js/web) (service: web) Step 2/7 : WORKDIR /usr/app (image: registry.heroku.com/todos-js/web) (service: web) ---> Using cache (image: registry.heroku.com/todos-js/web) (service: web) ---> 930841436abd (image: registry.heroku.com/todos-js/web) (service: web) Step 3/7 : RUN apk update && apk add postgresql (image: registry.heroku.com/todos-js/web) (service: web) ---> Using cache (image: registry.heroku.com/todos-js/web) (service: web) ---> 723796574582 (image: registry.heroku.com/todos-js/web) (service: web) Step 4/7 : COPY package.json . (image: registry.heroku.com/todos-js/web) (service: web) ---> Using cache (image: registry.heroku.com/todos-js/web) (service: web) ---> f4366f587688
None
None
DEVELOPMENT CODE COMMIT STAGING PRODUCTION
heroku_dockercfg: image: codeship/heroku-dockercfg-generator add_docker: true encrypted_env_file: deployment.env.encrypted
- service: web type: push image_name: registry.heroku.com/todos-js/web registry: registry.heroku.com dockercfg_service:
heroku_dockercfg
/> jet steps --push --tag master /> git commit -am
“updated app” /> git push
None
None
None