diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index eae68d8..fcd42b2 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -63,9 +63,7 @@ services: restart: "no" app: - build: - context: . - dockerfile: Dockerfile + image: jpscott84/drinktracker:latest restart: unless-stopped ports: - "3000:3000" diff --git a/install.sh b/install.sh index edd7f2b..4c6add9 100644 --- a/install.sh +++ b/install.sh @@ -293,13 +293,13 @@ ENVEOF success "$ENV_FILE created (permissions: 600)" fi -# ─── Step 5: Build & Start ────────────────────────────────── +# ─── Step 5: Pull & Start ──────────────────────────────────── echo "" -info "Building Docker images (this may take a few minutes on first run)..." +info "Pulling Docker images..." echo "" -dc build --no-cache +dc pull echo "" info "Starting services..." @@ -398,7 +398,7 @@ echo -e " ${BOLD}Useful commands:${NC}" echo " View logs: $DC_CMD logs -f" echo " Stop: $DC_CMD down" echo " Restart: $DC_CMD restart" -echo " Rebuild: $DC_CMD up -d --build" +echo " Update: $DC_CMD pull && $DC_CMD up -d" echo "" echo -e " ${BOLD}${YELLOW}Next steps:${NC}" echo " 1. Open ${APP_URL_CHECK} and create your account"