Sign inSign up

memento12/blog

By memento12

•Updated over 2 years ago

Image
2

77

memento12/blog repository overview

⁠docker-hub 올리기

docker run --name git-blog -p 9051:80 -v /home/awya5/code/INAUGURATE-Ryong.github.io:/usr/share/nginx/html -d nginx
sudo docker commit git-blog memento12/blog:0.1.0
sudo docker push  memento12/blog:0.1.0

⁠fly-io에 배포하기

flyctl launch
vi fly.toml 

# fly.toml app configuration file generated for inaugurate-ryong-github-io on 2024-02-13T17:47:47+09:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'inaugurate-ryong-github-io'
primary_region = 'nrt'

[build]
  img="memento12/blog:0.1.0"   <- 추가
[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 0
  processes = ['app']

[[vm]]
  cpu_kind = 'shared'
  cpus = 1
  memory_mb = 256

수정 후 
 flyctl deploy

Tag summary

Content type

Image

Digest

sha256:991652820…

Size

133.5 MB

Last updated

over 2 years ago

docker pull memento12/blog:0.2.0